Blame SOURCES/ksh-20120801-tabfix.patch

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