diff src/testdir/test_textprop.vim @ 32977:68a12270d21b

patch 9.0.1785: wrong cursor position with 'showbreak' and lcs-eol Commit: https://github.com/vim/vim/commit/1193951bebcff50d88403ce17dec5d3be14f131d Author: zeertzjq <zeertzjq@outlook.com> Date: Wed Aug 23 20:58:01 2023 +0200 patch 9.0.1785: wrong cursor position with 'showbreak' and lcs-eol Problem: wrong cursor position with 'showbreak' and lcs-eol Solution: Add size of 'showbreak' before when 'listchars' "eol" is used. Also fix wrong cursor position with wrapping virtual text on empty line and 'showbreak'. closes: #12891 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author Christian Brabandt <cb@256bit.org>
date Thu, 24 Aug 2023 07:35:13 +0200
parents ccfca4f03a2b
children 0d460c34ee39
line wrap: on
line diff
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -2687,6 +2687,8 @@ func Run_test_prop_inserts_text_showbrea
   call VerifyScreenDump(buf, 'Test_prop_inserts_text_showbreak_20', {})
   call term_sendkeys(buf, "\<C-E>")
   call VerifyScreenDump(buf, 'Test_prop_inserts_text_showbreak_21', {})
+  call term_sendkeys(buf, "zbx")
+  call VerifyScreenDump(buf, 'Test_prop_inserts_text_showbreak_22', {})
 
   call StopVimInTerminal(buf)
 endfunc