comparison src/testdir/test_excmd.vim @ 29030:f79cff615e69 v8.2.5037

patch 8.2.5037: cursor position may be invalid after "0;" range Commit: https://github.com/vim/vim/commit/4d97a565ae8be0d4debba04ebd2ac3e75a0c8010 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 28 14:25:35 2022 +0100 patch 8.2.5037: cursor position may be invalid after "0;" range Problem: Cursor position may be invalid after "0;" range. Solution: Check the cursor position when it was set by ";" in the range.
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 May 2022 15:30:03 +0200
parents 367439b95aba
children 4f52a21f41f3
comparison
equal deleted inserted replaced
29029:f9ca997de70e 29030:f79cff615e69
715 call assert_equal("99\n", @") 715 call assert_equal("99\n", @")
716 716
717 bwipe! 717 bwipe!
718 endfunc 718 endfunc
719 719
720 " This was leaving the cursor in line zero
721 func Test_using_zero_in_range()
722 new
723 norm o00
724 silent! 0;s/\%')
725 bwipe!
726 endfunc
727
720 728
721 " vim: shiftwidth=2 sts=2 expandtab 729 " vim: shiftwidth=2 sts=2 expandtab