aboutsummaryrefslogtreecommitdiff
path: root/test/old
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-28 06:36:51 +0800
committerGitHub <noreply@github.com>2023-08-28 06:36:51 +0800
commitd7d3d757c1e9dc1c204764722623a9b0ae41eb83 (patch)
tree224f2ef542ff1e727e317c2a71eecc48218b6326 /test/old
parentabb8c2c453d1e084f8ab3e9bbaa8b27515c81a9f (diff)
parent062db5c136700c35ff700fa4567b6ec8042539c7 (diff)
downloadrneovim-d7d3d757c1e9dc1c204764722623a9b0ae41eb83.tar.gz
rneovim-d7d3d757c1e9dc1c204764722623a9b0ae41eb83.tar.bz2
rneovim-d7d3d757c1e9dc1c204764722623a9b0ae41eb83.zip
Merge pull request #24853 from zeertzjq/inline-virt-eol
fix(ui): wrong cursor position with left gravity inline virt text at eol
Diffstat (limited to 'test/old')
-rw-r--r--test/old/testdir/test_breakindent.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/old/testdir/test_breakindent.vim b/test/old/testdir/test_breakindent.vim
index 3ce7d1386b..301e2d0e40 100644
--- a/test/old/testdir/test_breakindent.vim
+++ b/test/old/testdir/test_breakindent.vim
@@ -938,7 +938,6 @@ func Test_cursor_position_with_showbreak()
vim9script
&signcolumn = 'yes'
&showbreak = '++'
- &breakindent = true
&breakindentopt = 'shift:2'
var leftcol: number = win_getid()->getwininfo()->get(0, {})->get('textoff')
repeat('x', &columns - leftcol - 1)->setline(1)
@@ -952,9 +951,14 @@ func Test_cursor_position_with_showbreak()
" No line wraps, so changing 'showbreak' should lead to the same screen.
call term_sendkeys(buf, "\<C-\>\<C-O>:setlocal showbreak=+\<CR>")
call VerifyScreenDump(buf, 'Test_cursor_position_with_showbreak_1', {})
+ " No line wraps, so setting 'breakindent' should lead to the same screen.
+ call term_sendkeys(buf, "\<C-\>\<C-O>:setlocal breakindent\<CR>")
+ call VerifyScreenDump(buf, 'Test_cursor_position_with_showbreak_1', {})
" The first line now wraps because of "eol" in 'listchars'.
call term_sendkeys(buf, "\<C-\>\<C-O>:setlocal list\<CR>")
call VerifyScreenDump(buf, 'Test_cursor_position_with_showbreak_2', {})
+ call term_sendkeys(buf, "\<C-\>\<C-O>:setlocal nobreakindent\<CR>")
+ call VerifyScreenDump(buf, 'Test_cursor_position_with_showbreak_3', {})
call StopVimInTerminal(buf)
endfunc