patch 9.1.1249: tests: no test that 'listchars' "eol" doesn't affect "gM"
Commit: https://github.com/vim/vim/commit/757c37da6dd99d23fed90c00e44dd65e351e19ac Author: zeertzjq <zeert...@outlook.com> Date: Thu Mar 27 18:21:49 2025 +0100 patch 9.1.1249: tests: no test that 'listchars' "eol" doesn't affect "gM" Problem: No test that 'listchars' "eol" doesn't affect "gM". Solution: Add a test (zeertzjq). closes: #16990 Signed-off-by: zeertzjq <zeert...@outlook.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim index 75a3028b6..35c290c8d 100644 --- a/src/testdir/test_normal.vim +++ b/src/testdir/test_normal.vim @@ -2698,6 +2698,22 @@ func Test_normal33_g_cmd2() call assert_equal(87, col('.')) call assert_equal('E', getreg(0)) + " Have an odd number of chars in the line + norm! A. + call assert_equal(145, col('.')) + norm! gMyl + call assert_equal(73, col('.')) + call assert_equal('0', getreg(0)) + + " 'listchars' "eol" should not affect gM behavior + setlocal list listchars=eol:$ + norm! $ + call assert_equal(145, col('.')) + norm! gMyl + call assert_equal(73, col('.')) + call assert_equal('0', getreg(0)) + setlocal nolist + " Test for gM with Tab characters call setline('.', " a b c d e f") norm! gMyl diff --git a/src/version.c b/src/version.c index 9569a09fe..7339d58f2 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1249, /**/ 1248, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1txr3O-001d0l-MC%40256bit.org.