diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2023-07-26 21:27:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 21:27:35 +0100 |
commit | 8fe9f41f7f9da2009d11855ec0548b9dbe548a69 (patch) | |
tree | 8759d99d2b3f034449a0ac73dd0d77736d1c2aec /src/nvim/ex_getln.c | |
parent | ccf328172bac2b02f9bd19fa58e105958514a28a (diff) | |
parent | a47be0b2d90b26905866faf5b7cc82d9c17be9bb (diff) | |
download | rneovim-8fe9f41f7f9da2009d11855ec0548b9dbe548a69.tar.gz rneovim-8fe9f41f7f9da2009d11855ec0548b9dbe548a69.tar.bz2 rneovim-8fe9f41f7f9da2009d11855ec0548b9dbe548a69.zip |
Merge pull request #24457 from seandewar/relax-cmdwin
feat(api): relax cmdwin restrictions for a few functions
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 9dcfa99a37..5f1f5d5adc 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -4398,6 +4398,7 @@ static int open_cmdwin(void) // Set "cmdwin_type" before any autocommands may mess things up. cmdwin_type = get_cmdline_type(); cmdwin_level = ccline.level; + cmdwin_old_curwin = old_curwin; // Create empty command-line buffer. if (buf_open_scratch(0, _("[Command Line]")) == FAIL) { @@ -4405,6 +4406,7 @@ static int open_cmdwin(void) win_close(curwin, true, false); ga_clear(&winsizes); cmdwin_type = 0; + cmdwin_old_curwin = NULL; return Ctrl_C; } // Command-line buffer has bufhidden=wipe, unlike a true "scratch" buffer. @@ -4501,6 +4503,7 @@ static int open_cmdwin(void) cmdwin_type = 0; cmdwin_level = 0; + cmdwin_old_curwin = NULL; exmode_active = save_exmode; |