1
0
forked from aniani/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 #12318)
This commit is contained in:
Luuk van Baal
2023-04-30 19:15:30 +01:00
committed by Bram Moolenaar
parent 3ef2e41128
commit 5b10a14098
4 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
|<+0#4040ff13#ffffff0@2|a+0#0000000&@31
@35
@35
@35
@35
@35
@35
@35
@35
@35
@35
@26>a@8
@10| @24
@18|1|,|4|8|2| @7|T|o|p|

View File

@@ -0,0 +1,14 @@
|<+0#4040ff13#ffffff0@2|a+0#0000000&@31
@35
@35
@35
@35
@35
@35
@35
@35
@35
@35
@25>a| @8
|b@4| |b@4| |b@4| |b@4| |b@4| |b@1|@+0#4040ff13&@2
| +0#0000000&@17|1|,|4|8|1| @7|T|o|p|

View File

@@ -467,5 +467,26 @@ func Test_display_lastline()
call assert_fails(':set fillchars=lastline:', 'E474:') call assert_fails(':set fillchars=lastline:', 'E474:')
endfunc 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 " vim: shiftwidth=2 sts=2 expandtab

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1502,
/**/ /**/
1501, 1501,
/**/ /**/