diff options
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 66f6f06062..7bc71c1477 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -1245,7 +1245,9 @@ bool edit(int cmdchar, bool startln, long count) // Don't allow changes in the buffer while editing the cmdline. The // caller of getcmdline() may get confused. // Don't allow recursive insert mode when busy with completion. - if (textlock != 0 || ins_compl_active() || compl_busy || pum_visible()) { + // Allow in dummy buffers since they are only used internally + if (textlock != 0 || ins_compl_active() || compl_busy || pum_visible() + || expr_map_locked()) { emsg(_(e_textlock)); return false; } |