summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-30 22:31:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-30 22:31:18 +0200
commit6adb9ea0a6ca01414f4b591f379b0f829a8273c0 (patch)
tree8af9e5e5b2ea5d0a76e0fb1b393835c46674b27f /src/window.c
parent4e5534fab798ab7c95554da3bc80b08336aedc2b (diff)
downloadvim-git-6adb9ea0a6ca01414f4b591f379b0f829a8273c0.tar.gz
patch 8.2.0670: cannot change window when evaluating 'completefunc'v8.2.0670
Problem: Cannot change window when evaluating 'completefunc'. Solution: Make a difference between not changing text or buffers and also not changing window.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 7c18c06a7..532d31431 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4370,7 +4370,7 @@ win_goto(win_T *wp)
return;
}
#endif
- if (text_locked())
+ if (text_and_win_locked())
{
beep_flush();
text_locked_msg();