0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.0.1533: test for 'smoothscroll' is ineffective

Problem:    Test for 'smoothscroll' is ineffective.
Solution:   Change the order of testing "zb" and "zt". (Luuk van Baal,
            closes #12366)
This commit is contained in:
Luuk van Baal 2023-05-09 21:23:54 +01:00 committed by Bram Moolenaar
parent ab9a2d884b
commit 6f37e530d3
5 changed files with 17 additions and 15 deletions

View File

@ -1,6 +1,6 @@
|<+0#4040ff13#ffffff0@2|t+0#0000000&|h| |l|o|t|s| |o|f| |t|e|x|t| |w|i|t|h| |l|o|t|s| |o|f| |t|e|x|t| |w|i|t >f+0&#ffffff0|o|u|r| @35
|h| |l|o|t|s| |o|f| |t|e|x|t| |w|i|t|h| |l|o|t|s| |o|f| |t|e|x|t| |w|i|t|h| |l|o |~+0#4040ff13&| @38
|t|s| |o|f| |t|e|x|t| |w|i|t|h| |l|o|t|s| |o|f| |t|e|x|t| |w|i|t|h| |l|o|t|s| |o |~| @38
|f| |t|e|x|t| |w|i|t|h| |l|o|t|s| |o|f| |t|e|x|t| |e|n|d| @11 |~| @38
>f|o|u|r| @35 |~| @38
|:|s|e|t| |s|c|r|o|l@1|o| @9|4|,|1| @10|B|o|t| | +0#0000000&@21|4|,|1| @10|B|o|t|

View File

@ -3,4 +3,4 @@
>f|o|u|r| @35 >f|o|u|r| @35
|~+0#4040ff13&| @38 |~+0#4040ff13&| @38
|~| @38 |~| @38
|:+0#0000000&|s|e|t| |s|c|r|o|l@1|o| @9|4|,|1| @10|B|o|t| | +0#0000000&@21|4|,|1| @10|B|o|t|

View File

@ -1,6 +1,6 @@
>f+0&#ffffff0|o|u|r| @35 |<+0#4040ff13#ffffff0@2|t+0#0000000&|h| |l|o|t|s| |o|f| |t|e|x|t| |w|i|t|h| |l|o|t|s| |o|f| |t|e|x|t| |w|i|t
|~+0#4040ff13&| @38 |h| |l|o|t|s| |o|f| |t|e|x|t| |w|i|t|h| |l|o|t|s| |o|f| |t|e|x|t| |w|i|t|h| |l|o
|~| @38 |t|s| |o|f| |t|e|x|t| |w|i|t|h| |l|o|t|s| |o|f| |t|e|x|t| |w|i|t|h| |l|o|t|s| |o
|~| @38 |f| |t|e|x|t| |w|i|t|h| |l|o|t|s| |o|f| |t|e|x|t| |e|n|d| @11
|~| @38 >f|o|u|r| @35
| +0#0000000&@21|4|,|1| @10|B|o|t| @22|4|,|1| @10|B|o|t|

View File

@ -323,11 +323,11 @@ func Test_smoothscroll_wrap_long_line()
call VerifyScreenDump(buf, 'Test_smooth_long_10', {}) call VerifyScreenDump(buf, 'Test_smooth_long_10', {})
" Test zt/zz/zb that they work properly when a long line is above it " Test zt/zz/zb that they work properly when a long line is above it
call term_sendkeys(buf, "zb") call term_sendkeys(buf, "zt")
call VerifyScreenDump(buf, 'Test_smooth_long_11', {}) call VerifyScreenDump(buf, 'Test_smooth_long_11', {})
call term_sendkeys(buf, "zz") call term_sendkeys(buf, "zz")
call VerifyScreenDump(buf, 'Test_smooth_long_12', {}) call VerifyScreenDump(buf, 'Test_smooth_long_12', {})
call term_sendkeys(buf, "zt") call term_sendkeys(buf, "zb")
call VerifyScreenDump(buf, 'Test_smooth_long_13', {}) call VerifyScreenDump(buf, 'Test_smooth_long_13', {})
" Repeat the step and move the cursor down again. " Repeat the step and move the cursor down again.

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 */
/**/
1533,
/**/ /**/
1532, 1532,
/**/ /**/