diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-30 15:23:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-30 15:23:09 +0100 |
commit | 71223e2db87c2bf3b09aecb46266b56cda26191d (patch) | |
tree | 3fc0857560f746c12af92b0ed02e2aab8696708e /src/buffer.c | |
parent | 89b25585ccecf223ca41ca212df8ebc227fc035a (diff) |
patch 8.2.5043: can open a cmdline window from a substitute expressionv8.2.5043
Problem: Can open a cmdline window from a substitute expression.
Solution: Disallow opening a command line window when text or buffer is
locked.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c index efec431c82..e775398d02 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -2407,12 +2407,7 @@ buflist_getfile( if (buf == curbuf) return OK; - if (text_locked()) - { - text_locked_msg(); - return FAIL; - } - if (curbuf_locked()) + if (text_or_buf_locked()) return FAIL; // altfpos may be changed by getfile(), get it now |