Mercurial > vim
comparison src/testdir/test_ex_mode.vim @ 32122:a2dd770c854a v9.0.1392
patch 9.0.1392: using NULL pointer with nested :open command
Commit: https://github.com/vim/vim/commit/7ac5023a5f1a37baafbe1043645f97ba3443d9f6
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 7 21:05:04 2023 +0000
patch 9.0.1392: using NULL pointer with nested :open command
Problem: Using NULL pointer with nested :open command.
Solution: Check that ccline.cmdbuff is not NULL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 07 Mar 2023 22:15:04 +0100 |
parents | ea38db8639eb |
children | 9e28090dd246 |
comparison
equal
deleted
inserted
replaced
32121:b8cdbccec740 | 32122:a2dd770c854a |
---|---|
132 catch /E479/ | 132 catch /E479/ |
133 endtry | 133 endtry |
134 bwipe! | 134 bwipe! |
135 endfunc | 135 endfunc |
136 | 136 |
137 " FIXME: this doesn't fail without the fix but hangs | |
138 func Skip_Test_open_command_state() | |
139 " Tricky script that failed because State was not set properly | |
140 let lines =<< trim END | |
141 !ls | |
142 0scìi | |
143 so! Xsourced | |
144 set t_û0=0 | |
145 v/-/o | |
146 END | |
147 call writefile(lines, 'XopenScript', '') | |
148 | |
149 let sourced = ["!f\u0083\x02\<Esc>z=0"] | |
150 call writefile(sourced, 'Xsourced', 'b') | |
151 | |
152 CheckRunVimInTerminal | |
153 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}) | |
154 sleep 3 | |
155 | |
156 call StopVimInTerminal(buf) | |
157 endfunc | |
158 | |
137 " Test for :g/pat/visual to run vi commands in Ex mode | 159 " Test for :g/pat/visual to run vi commands in Ex mode |
138 " This used to hang Vim before 8.2.0274. | 160 " This used to hang Vim before 8.2.0274. |
139 func Test_Ex_global() | 161 func Test_Ex_global() |
140 new | 162 new |
141 call setline(1, ['', 'foo', 'bar', 'foo', 'bar', 'foo']) | 163 call setline(1, ['', 'foo', 'bar', 'foo', 'bar', 'foo']) |