On Sat, Nov 21, 2009 at 09:15:17PM -0800, patrick keshishian wrote: > I wonder if included patch is a correct fix for the following > "glitch" I'm seeing with ksh in `set -o vi' mode: > > Demonstration of "glitch": > $ touch a.c a.h > $ ls a.<TAB><RETURN> > ls: a.: No such file or directory > $ <TAB> > a.c a.h > $ > > With patch: > $ ls a.
And of course I had to screw this up, but I think the point was made. Above should've been: $ ls a.<TAB><RETURN> > ls: a.: No such file or directory > $ <TAB><BEEP> > > Thanks, > --patrick > > > Index: vi.c > =================================================================== > RCS file: /cvs/anoncvs/cvs/obsd/src/bin/ksh/vi.c,v > retrieving revision 1.26 > diff -u -p -r1.26 vi.c > --- vi.c 29 Jun 2009 22:50:19 -0000 1.26 > +++ vi.c 22 Nov 2009 05:05:42 -0000 > @@ -626,6 +626,7 @@ vi_insert(int ch) > > case '\r': > case '\n': > + expanded = NONE; > return 1; > > case Ctrl('['):