aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-12-01 17:32:48 +0100
committerGitHub <noreply@github.com>2020-12-01 17:32:48 +0100
commitf88c2490c7971e7f8889e60316ff3767b1a3f92c (patch)
tree78e83b7a742c708d3655b77f39fe89334d40b3e9 /src
parent70d0bee7655d70e4417143e45ec7b0cf3f92d9d3 (diff)
parentbed9839f46047abd81f7c9b56936ba177829221c (diff)
downloadrneovim-f88c2490c7971e7f8889e60316ff3767b1a3f92c.tar.gz
rneovim-f88c2490c7971e7f8889e60316ff3767b1a3f92c.tar.bz2
rneovim-f88c2490c7971e7f8889e60316ff3767b1a3f92c.zip
Merge pull request #13425 from bfredl/secretcharm
ex_getln: add secret charm
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_getln.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 0100be15bc..ed408c28e5 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -1024,7 +1024,7 @@ static int command_line_execute(VimState *state, int key)
}
// free expanded names when finished walking through matches
- if (!(s->c == p_wc && KeyTyped) && s->c != p_wcm
+ if (!(s->c == p_wc && KeyTyped) && s->c != p_wcm && s->c != Ctrl_Z
&& s->c != Ctrl_N && s->c != Ctrl_P && s->c != Ctrl_A
&& s->c != Ctrl_L) {
if (compl_match_array) {
@@ -1328,7 +1328,8 @@ static int command_line_execute(VimState *state, int key)
// - hitting <ESC> twice means: abandon command line.
// - wildcard expansion is only done when the 'wildchar' key is really
// typed, not when it comes from a macro
- if ((s->c == p_wc && !s->gotesc && KeyTyped) || s->c == p_wcm) {
+ if ((s->c == p_wc && !s->gotesc && KeyTyped) || s->c == p_wcm
+ || s->c == Ctrl_Z) {
int options = WILD_NO_BEEP;
if (wim_flags[s->wim_index] & WIM_BUFLASTUSED) {
options |= WILD_BUFLASTUSED;