Blame SOURCES/ksh-20120801-tabfix.patch

503c26
diff -up ksh-20120801/src/cmd/ksh93/edit/emacs.c.tabfix ksh-20120801/src/cmd/ksh93/edit/emacs.c
503c26
--- ksh-20120801/src/cmd/ksh93/edit/emacs.c.tabfix	2012-07-17 22:44:44.000000000 +0200
503c26
+++ ksh-20120801/src/cmd/ksh93/edit/emacs.c	2013-03-07 15:58:59.902161711 +0100
503c26
@@ -1011,10 +1011,13 @@ static int escape(register Emacs_t* ep,r
503c26
 					ep->ed->e_tabcount=0;
503c26
 				else
503c26
 				{
503c26
+					int oldi = i;
503c26
 					i=ed_getchar(ep->ed,0);
503c26
 					ed_ungetchar(ep->ed,i);
503c26
-					if(isdigit(i))
503c26
+					if(isdigit(i) && oldi=='=')
503c26
 						ed_ungetchar(ep->ed,ESC);
503c26
+					else if (isdigit(i) || i=='\t')
503c26
+						ep->ed->e_tabcount=0;
503c26
 				}
503c26
 			}
503c26
 			else