]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1956: Custom completion skips orig cmdline if it invokes glob() v9.0.1956
authorzeertzjq <zeertzjq@outlook.com>
Fri, 29 Sep 2023 17:58:35 +0000 (19:58 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 29 Sep 2023 17:58:35 +0000 (19:58 +0200)
commit28a23602e8f88937645b8506b7915ecea6e09b18
tree83677a9ee654a632ae39646e12f8adc9d91d6a24
parentee865f37acab6cac2cee6a171d60e1b365f852b0
patch 9.0.1956: Custom completion skips orig cmdline if it invokes glob()

Problem:  Custom cmdline completion skips original cmdline when pressing
          Ctrl-P at first match if completion function invokes glob().
Solution: Move orig_save into struct expand_T.

closes: #13216

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
src/cmdexpand.c
src/structs.h
src/testdir/test_cmdline.vim
src/version.c