mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
vim-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.
71223e2db8
This commit is contained in:
@@ -4571,12 +4571,8 @@ void win_goto(win_T *wp)
|
||||
{
|
||||
win_T *owp = curwin;
|
||||
|
||||
if (text_locked()) {
|
||||
if (text_or_buf_locked()) {
|
||||
beep_flush();
|
||||
text_locked_msg();
|
||||
return;
|
||||
}
|
||||
if (curbuf_locked()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user