summaryrefslogtreecommitdiffstats
path: root/Functions/Example
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2026-05-10 21:28:49 +0200
committerMikael Magnusson <mikachu@gmail.com>2026-05-25 07:10:42 +0200
commit00181813dc7e2c8c7ce864d0191b90da9a329670 (patch)
treee68cf6a6909812e0c1eac3ee5ef56ebd74d9ab13 /Functions/Example
parent54600: fix metafy stuff in add_autoload_function (diff)
downloadzsh-00181813dc7e2c8c7ce864d0191b90da9a329670.tar
zsh-00181813dc7e2c8c7ce864d0191b90da9a329670.tar.gz
zsh-00181813dc7e2c8c7ce864d0191b90da9a329670.tar.bz2
zsh-00181813dc7e2c8c7ce864d0191b90da9a329670.tar.lz
zsh-00181813dc7e2c8c7ce864d0191b90da9a329670.tar.xz
zsh-00181813dc7e2c8c7ce864d0191b90da9a329670.tar.zst
zsh-00181813dc7e2c8c7ce864d0191b90da9a329670.zip
54601: fix complist interactive mode overwriting buffer
This has been discussed a few times starting with 49242, and continued at 50412, 50422, 52312 and 52657. reproduce recipe: % zmodload zsh/complist % bindkey '^I' menu-select % MENUMODE=interactive % touch test{1,2} % : ; foobar ^ 1. Type the above line in its entirety. 2. Place the cursor before the ; 3. Press Tab. 4. Press Enter. % : test1 bar ^ Completion is written over existing buffer contents. The main confusing thing to note is that do_single looks at minfo.cur, whether you pass it or not, because minfo is a global variable. When it is not NULL, it uses minfo.pos and minfo.len which are stale in these particular situations. When it is instead NULL, it recalculates them correctly for us, which is what we want. The two different hunks are separate code paths for accepting the completion or navigating to another match.
Diffstat (limited to 'Functions/Example')
0 files changed, 0 insertions, 0 deletions