Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: History !# substitutions



On May 30, 10:33am, Peter Stephenson wrote:
} Subject: Re: History !# substitutions
}
} schaefer@xxxxxxxxxxxxxxxxxxxxxxx wrote:
} > zigzag% echo foo bar !#:1 ba<TAB>
} > [BEEP][cursor doesn't move]
} > 
} > Much better, but still not perfect.  I realize it probably can't expand
} > to the correct word, but could it at least ignore the history error and
} > continue completing stuff on the rest of the line?
} 
} I think a judicious `stophist = 1' in get_comp_string() should fix this.

Works like a champ!  Thanks again!

} I changed the code, then found there was a bug in menu completion:
} hitting tab repeatedly added an extra space each time.  Then I tried
} it with the old version and discovered it was there anyway.  Has this
} been reported and fixed while I was asleep?

It's worse than that; look:

zagzig% echo foo co bar<C-b><C-b><C-b><C-b><TAB><TAB><TAB><TAB>
zagzig% echo foo config bar
zagzig% echo foo config.cache barr
zagzig% echo foo config.guess barrr
zagzig% echo foo config.h barrrr

Seems to be an off-by-one error in the length of the string, not just
a space or slash being appended.

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"




Messages sorted by: Reverse Date, Date, Thread, Author