diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-03-20 10:30:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 10:30:59 +0000 |
commit | d8f9dcd5deb72f1fbc706d7b3bb5b823c7998e38 (patch) | |
tree | 9354e0f324c274ba9aaae31ddb2269b1a6a54268 /src/nvim/edit.c | |
parent | 84027f7515b8ee6f818462f105882fc0052783c4 (diff) | |
parent | e5641df6d3fc3bb6c3c55593b6152082bfc561b6 (diff) | |
download | rneovim-d8f9dcd5deb72f1fbc706d7b3bb5b823c7998e38.tar.gz rneovim-d8f9dcd5deb72f1fbc706d7b3bb5b823c7998e38.tar.bz2 rneovim-d8f9dcd5deb72f1fbc706d7b3bb5b823c7998e38.zip |
Merge pull request #22634 from lewis6991/feat/tscomment
feat: add vim.filetype.get_option()
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; } |