mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
remove disable_char_avail_for_testing()
test_cursor_func.vim hangs at the call to disable_char_avail_for_testing(). The test does not actually need this function (and it correctly fails if the fix from 7.4.1300 is reverted). Given that disable_char_avail_for_testing is a gigantic hack, if we can avoid it let's do so.
This commit is contained in:
@@ -44,9 +44,7 @@ func Test_curswant_with_autocommand()
|
||||
new
|
||||
call setline(1, ['func()', '{', '}', '----'])
|
||||
autocmd! CursorMovedI * call s:Highlight_Matching_Pair()
|
||||
call disable_char_avail_for_testing(1)
|
||||
exe "normal! 3Ga\<Down>X\<Esc>"
|
||||
call disable_char_avail_for_testing(0)
|
||||
call assert_equal('-X---', getline(4))
|
||||
autocmd! CursorMovedI *
|
||||
quit!
|
||||
|
Reference in New Issue
Block a user