summaryrefslogtreecommitdiffstats
path: root/src/evalwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evalwindow.c')
-rw-r--r--src/evalwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalwindow.c b/src/evalwindow.c
index cb813a6f43..ceca2c9ff1 100644
--- a/src/evalwindow.c
+++ b/src/evalwindow.c
@@ -1001,8 +1001,8 @@ f_win_splitmove(typval_T *argvars, typval_T *rettv)
size = (int)dict_get_number(d, "size");
}
- // Check if we can split the target before we bother switching windows.
- if (text_or_buf_locked() || check_split_disallowed(targetwin) == FAIL)
+ // Check if we're allowed to continue before we bother switching windows.
+ if (text_or_buf_locked() || check_split_disallowed(wp) == FAIL)
return;
if (curwin != targetwin)