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:
committed by
Bram Moolenaar
parent
3ef2e41128
commit
5b10a14098
14
src/testdir/dumps/Test_display_long_line_1.dump
Normal file
14
src/testdir/dumps/Test_display_long_line_1.dump
Normal 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|
|
14
src/testdir/dumps/Test_display_long_line_2.dump
Normal file
14
src/testdir/dumps/Test_display_long_line_2.dump
Normal 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|
|
@@ -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
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user