0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.5043: can open a cmdline window from a substitute expression

Problem:    Can open a cmdline window from a substitute expression.
Solution:   Disallow opening a command line window when text or buffer is
            locked.
This commit is contained in:
Bram Moolenaar
2022-05-30 15:23:09 +01:00
parent 89b25585cc
commit 71223e2db8
6 changed files with 51 additions and 12 deletions

View File

@@ -4585,14 +4585,11 @@ win_goto(win_T *wp)
return;
}
#endif
if (text_locked())
if (text_or_buf_locked())
{
beep_flush();
text_locked_msg();
return;
}
if (curbuf_locked())
return;
if (wp->w_buffer != curbuf)
reset_VIsual_and_resel();