aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-02-21 16:19:49 +0000
committerSean Dewar <seandewar@users.noreply.github.com>2022-03-14 13:10:56 +0000
commit490874f3da4c39a36438b6cfa6d79e594b82806f (patch)
tree1369056df1f6c63558e77876c0a2c8a57c398336
parent880d3537d06ef067021c73bc361fa47ab8347992 (diff)
downloadrneovim-490874f3da4c39a36438b6cfa6d79e594b82806f.tar.gz
rneovim-490874f3da4c39a36438b6cfa6d79e594b82806f.tar.bz2
rneovim-490874f3da4c39a36438b6cfa6d79e594b82806f.zip
vim-patch:8.2.4432: cannot use settabvar() while the cmdline window is open
Problem: Cannot use settabvar() while the cmdline window is open. Solution: Only give an error when actually switching tabpage. (closes vim/vim#9813) https://github.com/vim/vim/commit/592f6250017c31c8996325403e511f4502077ba5
-rw-r--r--src/nvim/window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 5878a6ba0b..3c34620db4 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -4269,7 +4269,9 @@ void goto_tabpage(int n)
/// @param trigger_leave_autocmds when true trigger *Leave autocommands.
void goto_tabpage_tp(tabpage_T *tp, bool trigger_enter_autocmds, bool trigger_leave_autocmds)
{
- CHECK_CMDWIN;
+ if (trigger_enter_autocmds || trigger_leave_autocmds) {
+ CHECK_CMDWIN;
+ }
// Don't repeat a message in another tab page.
set_keep_msg(NULL, 0);