comparison src/testdir/test_edit.vim @ 26155:f2392648af3e v8.2.3609

patch 8.2.3609: internal error when ModeChanged is triggered recursively Commit: https://github.com/vim/vim/commit/3075a45592fe76f2febb6321632a23e352efe949 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 17 15:51:52 2021 +0000 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Nov 2021 17:00:05 +0100
parents 33ae003bb569
children 20200363816c
comparison
equal deleted inserted replaced
26154:fa84cd94d8b6 26155:f2392648af3e
2032 unlet! g:i_to_n 2032 unlet! g:i_to_n
2033 unlet! g:nori_to_any 2033 unlet! g:nori_to_any
2034 unlet! g:i_to_any 2034 unlet! g:i_to_any
2035 endfunc 2035 endfunc
2036 2036
2037 func Test_recursive_ModeChanged()
2038 au! ModeChanged * norm 0u
2039 sil! norm 
2040 au!
2041 endfunc
2042
2037 " Test toggling of input method. See :help i_CTRL-^ 2043 " Test toggling of input method. See :help i_CTRL-^
2038 func Test_edit_CTRL_hat() 2044 func Test_edit_CTRL_hat()
2039 CheckFeature xim 2045 CheckFeature xim
2040 2046
2041 " FIXME: test fails with Athena and Motif GUI. 2047 " FIXME: test fails with Athena and Motif GUI.