diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-03-15 23:30:14 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2023-03-20 10:00:52 +0000 |
commit | e1db0e35e4d5859b96e6aff882df62d6c714b569 (patch) | |
tree | 8f6356c6a7cf6975c7bf26ad81fb3436ce1f90ae /src/nvim/edit.c | |
parent | 84027f7515b8ee6f818462f105882fc0052783c4 (diff) | |
download | rneovim-e1db0e35e4d5859b96e6aff882df62d6c714b569.tar.gz rneovim-e1db0e35e4d5859b96e6aff882df62d6c714b569.tar.bz2 rneovim-e1db0e35e4d5859b96e6aff882df62d6c714b569.zip |
feat(api): add filetype option nvim_get_option_value
- Also adjust the expr-mapping behaviour so normal commands and text
changes are allowed in internal dummy buffers.
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; } |