diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2026-05-24 00:15:31 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2026-05-25 07:10:42 +0200 |
| commit | d783c155f8061c442a7a499c3553606f63d33075 (patch) | |
| tree | 2040a30f55a597c91d1ec4f0a6438bf45b07dd72 /Completion/Unix/Command/_base64 | |
| parent | 54601: fix complist interactive mode overwriting buffer (diff) | |
| download | zsh-d783c155f8061c442a7a499c3553606f63d33075.tar zsh-d783c155f8061c442a7a499c3553606f63d33075.tar.gz zsh-d783c155f8061c442a7a499c3553606f63d33075.tar.bz2 zsh-d783c155f8061c442a7a499c3553606f63d33075.tar.lz zsh-d783c155f8061c442a7a499c3553606f63d33075.tar.xz zsh-d783c155f8061c442a7a499c3553606f63d33075.tar.zst zsh-d783c155f8061c442a7a499c3553606f63d33075.zip | |
54609 + 54606: additional fixes for interactive menu selection
Both of these involve we being incorrect, the we = wb + modelen hunk
fixes this problem:
% : <cursor here>; foobar
start interactive menu selection, type doc/z/ and hit tab, then select
one of the files, you end up with
% : Doc/Zsh/arith.yo<cursor here>[suffix space]h/; foobar
The other hunk is for when there is a leading quote in the word being
completed, like "NE being incorrectly completed to "NEWS"E
During completion, the quote tokens are temporarily removed, and we is
decremented (this all happens in get_comp_string, around the parts
involving skipchars, I would advice not looking too closely). Then the
complist code restores the original string via setmline but forgot to
restore we. I don't think there's any point in trying to track exactly
how many characters were deleted to add them back, just set it back to
the cursor position.
Diffstat (limited to 'Completion/Unix/Command/_base64')
0 files changed, 0 insertions, 0 deletions
