mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +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:
@@ -1963,11 +1963,7 @@ int buflist_getfile(int n, linenr_T lnum, int options, int forceit)
|
||||
return OK;
|
||||
}
|
||||
|
||||
if (text_locked()) {
|
||||
text_locked_msg();
|
||||
return FAIL;
|
||||
}
|
||||
if (curbuf_locked()) {
|
||||
if (text_or_buf_locked()) {
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user