aboutsummaryrefslogtreecommitdiff
path: root/test/old
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-04-30 22:04:35 +0200
committerLuuk van Baal <luukvbaal@gmail.com>2023-05-02 13:11:47 +0200
commit3b1d31197c7af4d87f7e693a1702b5330411f5aa (patch)
treedacfe06f892cecad585e5ac9929bc2e09c9c4ae9 /test/old
parentf78130b2d84a950ed7a13a5cbd946cba6c5c68f7 (diff)
downloadrneovim-3b1d31197c7af4d87f7e693a1702b5330411f5aa.tar.gz
rneovim-3b1d31197c7af4d87f7e693a1702b5330411f5aa.tar.bz2
rneovim-3b1d31197c7af4d87f7e693a1702b5330411f5aa.zip
vim-patch:9.0.1502: no test for deleting the end of a long wrapped line
Problem: No test for deleting the end of a long wrapped line. Solution: Add a test to check the right text is displayed. (Luuk van Baal, closes vim/vim#12318) https://github.com/vim/vim/commit/5b10a140983c16140d69a214494c4b8af8b34763 Co-authored-by: Luuk van Baal <luukvbaal@gmail.com>
Diffstat (limited to 'test/old')
-rw-r--r--test/old/testdir/test_display.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/old/testdir/test_display.vim b/test/old/testdir/test_display.vim
index b642f39c9f..f27a8362a9 100644
--- a/test/old/testdir/test_display.vim
+++ b/test/old/testdir/test_display.vim
@@ -478,5 +478,26 @@ func Test_display_lastline()
call assert_fails(':set fillchars=lastline:〇', 'E474:')
endfunc
+func Test_display_long_lastline()
+ CheckScreendump
+
+ let lines =<< trim END
+ set display=lastline
+ call setline(1, [
+ \'aaaaa'->repeat(100),
+ \'bbbbb '->repeat(7) .. 'ccccc '->repeat(7) .. 'ddddd '->repeat(7)
+ \])
+ END
+
+ call writefile(lines, 'XdispLongline', 'D')
+ let buf = RunVimInTerminal('-S XdispLongline', #{rows: 14, cols: 35})
+
+ call term_sendkeys(buf, "482|")
+ call VerifyScreenDump(buf, 'Test_display_long_line_1', {})
+ call term_sendkeys(buf, "D")
+ call VerifyScreenDump(buf, 'Test_display_long_line_2', {})
+
+ call StopVimInTerminal(buf)
+endfunc
" vim: shiftwidth=2 sts=2 expandtab