1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

emacs.c: unbreak menu-driven pathname completion (re: e8b3274a)

One of the few AT&T fixes applied in early 2020 was a one-line
change to emacs.c tab handling, with only this info in the commit
message:

|  - fix to emacs.c (I think from dgk)

So, it's unknown what that was meant to accomplish, but I did just
find that it breaks menu-driven pathname completion:

$ ls arch/darwin.i386-64/
1) bin/
2) fun/
3) include/
4) lib/
5) man/
6) src/
$ ls arch/darwin.i386-64/3	_

Typing 3+TAB should have inserted 'include/' but inserted a literal
tab instead. Reverting the vague "fix" fixes this bug.
This commit is contained in:
Martijn Dekker 2020-09-15 05:50:08 +02:00
parent f2a3f4e36b
commit 16e4824c45

View file

@ -1007,7 +1007,7 @@ static int escape(register Emacs_t* ep,register genchar *out,int count)
else if(i=='=' || (i=='\\' && out[cur-1]=='/'))
{
draw(ep,REFRESH);
if(count>0 || i=='\\')
if(count>0)
ep->ed->e_tabcount=0;
else
{