comparison src/testdir/test_ex_mode.vim @ 28477:0ae0946ebf9b v8.2.4763

patch 8.2.4763: using invalid pointer with "V:" in Ex mode Commit: https://github.com/vim/vim/commit/f50808ed135ab973296bca515ae4029b321afe47 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 16 18:52:17 2022 +0100 patch 8.2.4763: using invalid pointer with "V:" in Ex mode Problem: Using invalid pointer with "V:" in Ex mode. Solution: Correctly handle the command being changed to "+".
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Apr 2022 20:00:03 +0200
parents 81d391f7c189
children 8e87a5d2284c
comparison
equal deleted inserted replaced
28476:345b77f77001 28477:0ae0946ebf9b
248 exe "normal gQi\<CR>." 248 exe "normal gQi\<CR>."
249 set ts=8 noai 249 set ts=8 noai
250 bwipe! 250 bwipe!
251 endfunc 251 endfunc
252 252
253 " This was accessing illegal memory when using "+" for eap->cmd.
254 func Test_empty_command_visual_mode()
255 let lines =<< trim END
256 r<sfile>
257 0norm0V:
258 :qall!
259 END
260 call writefile(lines, 'Xexmodescript')
261 call assert_equal(1, RunVim([], [], '-u NONE -e -s -S Xexmodescript'))
262
263 call delete('Xexmodescript')
264 endfunc
265
253 266
254 " vim: shiftwidth=2 sts=2 expandtab 267 " vim: shiftwidth=2 sts=2 expandtab