Blame SOURCES/ksh-20120801-tabfix.patch

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