Mercurial > vim
comparison src/structs.h @ 33395:55fefd9848e3 v9.0.1956
patch 9.0.1956: Custom completion skips orig cmdline if it invokes glob()
Commit: https://github.com/vim/vim/commit/28a23602e8f88937645b8506b7915ecea6e09b18
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri Sep 29 19:58:35 2023 +0200
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Sep 2023 20:15:03 +0200 |
parents | 016d8f863230 |
children | 95db67c7b754 |
comparison
equal
deleted
inserted
replaced
33394:6abc4476d642 | 33395:55fefd9848e3 |
---|---|
608 #endif | 608 #endif |
609 int xp_numfiles; // number of files found by | 609 int xp_numfiles; // number of files found by |
610 // file name completion | 610 // file name completion |
611 int xp_col; // cursor position in line | 611 int xp_col; // cursor position in line |
612 int xp_selected; // selected index in completion | 612 int xp_selected; // selected index in completion |
613 char_u *xp_orig; // originally expanded string | |
613 char_u **xp_files; // list of files | 614 char_u **xp_files; // list of files |
614 char_u *xp_line; // text being completed | 615 char_u *xp_line; // text being completed |
615 #define EXPAND_BUF_LEN 256 | 616 #define EXPAND_BUF_LEN 256 |
616 char_u xp_buf[EXPAND_BUF_LEN]; // buffer for returned match | 617 char_u xp_buf[EXPAND_BUF_LEN]; // buffer for returned match |
617 } expand_T; | 618 } expand_T; |