diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-03-09 08:15:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 08:15:06 +0800 |
commit | eaccd0decd707ff7cec318e06914f963daa9574c (patch) | |
tree | 5eba7a283a6cb17ffda69e8594618de5a637f878 /test | |
parent | be0461e3c216c2e4e2c3397c739b7727a5bf6df8 (diff) | |
download | rneovim-eaccd0decd707ff7cec318e06914f963daa9574c.tar.gz rneovim-eaccd0decd707ff7cec318e06914f963daa9574c.tar.bz2 rneovim-eaccd0decd707ff7cec318e06914f963daa9574c.zip |
vim-patch:9.0.1392: using NULL pointer with nested :open command (#22583)
Problem: Using NULL pointer with nested :open command.
Solution: Check that ccline.cmdbuff is not NULL.
https://github.com/vim/vim/commit/7ac5023a5f1a37baafbe1043645f97ba3443d9f6
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_ex_mode.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/old/testdir/test_ex_mode.vim b/test/old/testdir/test_ex_mode.vim index a6201886aa..b30dce8630 100644 --- a/test/old/testdir/test_ex_mode.vim +++ b/test/old/testdir/test_ex_mode.vim @@ -137,6 +137,28 @@ func Test_open_command_flush_line() bwipe! endfunc +" FIXME: this doesn't fail without the fix but hangs +func Skip_Test_open_command_state() + " Tricky script that failed because State was not set properly + let lines =<< trim END + !ls + 0scìi + so! Xsourced + set t_û0=0 + v/-/o + END + call writefile(lines, 'XopenScript', '') + + let sourced = ["!f\u0083\x02\<Esc>z=0"] + call writefile(sourced, 'Xsourced', 'b') + + CheckRunVimInTerminal + let buf = RunVimInTerminal('-u NONE -i NONE -n -m -X -Z -e -s -S XopenScript -c qa!', #{rows: 6, wait_for_ruler: 0, no_clean: 1}) + sleep 3 + + call StopVimInTerminal(buf) +endfunc + " Test for :g/pat/visual to run vi commands in Ex mode " This used to hang Vim before 8.2.0274. func Test_Ex_global() |