aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-28 06:26:24 +0800
committerGitHub <noreply@github.com>2022-01-28 06:26:24 +0800
commit9779f5c84c2c0210b050b0e81dde66e21e384469 (patch)
treec5376b77a47fc564e3cc8a38dbc732694d569a82 /src/nvim/testdir
parentc5ac04331bdde5dd226c8e058103ed0fd1d140b7 (diff)
downloadrneovim-9779f5c84c2c0210b050b0e81dde66e21e384469.tar.gz
rneovim-9779f5c84c2c0210b050b0e81dde66e21e384469.tar.bz2
rneovim-9779f5c84c2c0210b050b0e81dde66e21e384469.zip
vim-patch:8.2.3903: "gM" does not count tabs as expected (#16796)
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_normal.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim
index cb1d66cb98..5b7cf6fee5 100644
--- a/src/nvim/testdir/test_normal.vim
+++ b/src/nvim/testdir/test_normal.vim
@@ -1812,7 +1812,15 @@ fun! Test_normal33_g_cmd2()
call assert_equal(87, col('.'))
call assert_equal('E', getreg(0))
+ " Test for gM with Tab characters
+ call setline('.', "\ta\tb\tc\td\te\tf")
+ norm! gMyl
+ call assert_equal(6, col('.'))
+ call assert_equal("c", getreg(0))
+
" Test for g Ctrl-G
+ call setline('.', lineC)
+ norm! 60gMyl
set ff=unix
let a=execute(":norm! g\<c-g>")
call assert_match('Col 87 of 144; Line 2 of 2; Word 1 of 1; Byte 88 of 146', a)