comparison src/testdir/test_virtualedit.vim @ 30295:da023a22d73e v9.0.0483

patch 9.0.0483: illegal memory access when replacing in virtualedit mode Commit: https://github.com/vim/vim/commit/c249913edc35c0e666d783bfc21595cf9f7d9e0d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 16 22:16:59 2022 +0100 patch 9.0.0483: illegal memory access when replacing in virtualedit mode Problem: Illegal memory access when replacing in virtualedit mode. Solution: Check for replacing NUL after Tab.
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Sep 2022 23:30:04 +0200
parents b11130c6e694
children 2ce8e7c4acf4
comparison
equal deleted inserted replaced
30294:aba2aa7e9794 30295:da023a22d73e
570 bwipe! 570 bwipe!
571 let &mouse = save_mouse 571 let &mouse = save_mouse
572 set virtualedit& 572 set virtualedit&
573 endfunc 573 endfunc
574 574
575 " this was replacing the NUL at the end of the line
576 func Test_virtualedit_replace_after_tab()
577 new
578 s/\v/ 0
579 set ve=all
580 let @" = ''
581 sil! norm vPvr0
582
583 call assert_equal("\t0", getline(1))
584 set ve&
585 bwipe!
586 endfunc
587
588
575 " vim: shiftwidth=2 sts=2 expandtab 589 " vim: shiftwidth=2 sts=2 expandtab