summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-29 19:58:35 +0200
committerChristian Brabandt <cb@256bit.org>2023-09-29 19:58:35 +0200
commit28a23602e8f88937645b8506b7915ecea6e09b18 (patch)
tree83677a9ee654a632ae39646e12f8adc9d91d6a24 /src/structs.h
parentee865f37acab6cac2cee6a171d60e1b365f852b0 (diff)
patch 9.0.1956: Custom completion skips orig cmdline if it invokes glob()v9.0.1956
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>
Diffstat (limited to 'src/structs.h')
-rw-r--r--src/structs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h
index 9813c4e94d..d718efec2c 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -610,6 +610,7 @@ typedef struct expand
// file name completion
int xp_col; // cursor position in line
int xp_selected; // selected index in completion
+ char_u *xp_orig; // originally expanded string
char_u **xp_files; // list of files
char_u *xp_line; // text being completed
#define EXPAND_BUF_LEN 256