aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorMagnus Groß <magnus.gross@rwth-aachen.de>2021-11-17 17:55:49 +0100
committerMagnus Groß <magnus.gross@rwth-aachen.de>2021-11-18 14:23:33 +0100
commit1fb101afe4f28ada83721c4ac260de46d23504ee (patch)
treea4aa3a2f24cd51f6b53fea0b15400bce0bf06f7f /src/nvim/testdir
parentfdfd1eda434b70b02b4cb804546c97ef8ff09049 (diff)
downloadrneovim-1fb101afe4f28ada83721c4ac260de46d23504ee.tar.gz
rneovim-1fb101afe4f28ada83721c4ac260de46d23504ee.tar.bz2
rneovim-1fb101afe4f28ada83721c4ac260de46d23504ee.zip
vim-patch:8.2.3609: internal error when ModeChanged is triggered recursively
Problem: Internal error when ModeChanged is triggered when v:event is already in use. Solution: Save and restore v:event if needed. https://github.com/vim/vim/commit/3075a45592fe76f2febb6321632a23e352efe949 In the vim codebase there is no occurrence of get_vim_var_dict(VV_EVENT) after the above patch, so in order to hold the same invariant in the neovim codebase we needed to replace more occurrences than the related vim patch.
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_edit.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim
index 95eb5a0c8b..7a7f4cb036 100644
--- a/src/nvim/testdir/test_edit.vim
+++ b/src/nvim/testdir/test_edit.vim
@@ -1721,4 +1721,10 @@ func Test_mode_changes()
unlet! g:i_to_any
endfunc
+func Test_recursive_ModeChanged()
+ au! ModeChanged * norm 0u
+ sil! norm 
+ au!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab