mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
vim-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: vim/vim#16990
757c37da6d
This commit is contained in:
@ -2705,6 +2705,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('.', "\ta\tb\tc\td\te\tf")
|
||||
norm! gMyl
|
||||
|
Reference in New Issue
Block a user