]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1667: regression test doesn't fail when fix is reverted v9.0.1667
authorzeertzjq <zeertzjq@outlook.com>
Mon, 26 Jun 2023 18:02:43 +0000 (19:02 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 26 Jun 2023 18:02:43 +0000 (19:02 +0100)
Problem:    Regression test doesn't fail when fix is reverted.
Solution:   Add "n" to 'cpoptions' instead of using :winsize. (closes #12587,
            issue #12528)

src/testdir/dumps/Test_smoothscroll_zero_bot.dump
src/testdir/test_scroll_opt.vim
src/version.c

index 179b95c6e9a79be3c472ae822e11330a1be6c15f..c0b716fb8671dc52cadb4bfffc4c114dec8d9d9f 100644 (file)
@@ -1,19 +1,19 @@
-| +0#af5f00255#ffffff0||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
-|@+0#4040ff13&||+1#0000000&| +0&&@9
->@+0#4040ff13&||+1#0000000&| +0&&@9
-|<+3&&| |<+1&&|a|m|e|]| |[|+|]| 
-| +0&&@11
+| +0#af5f00255#ffffff0||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+|@+0#4040ff13&||+1#0000000&| +0&&@72
+>@+0#4040ff13&||+1#0000000&| +0&&@72
+|<+3&&| |[+1&&|N|o| |N|a|m|e|]| |[|+|]| @59
+| +0&&@74
index 279e547f860302113f69cf97aaac6cd971a2be90..81670cdd7a614e6823454b4f35e16bb496b23662 100644 (file)
@@ -840,7 +840,7 @@ func Test_smoothscroll_zero_width_scroll_cursor_bot()
   let lines =<< trim END
       silent normal yy
       silent normal 19p
-      winsize 0 19
+      set cpoptions+=n
       vsplit
       vertical resize 0
       set foldcolumn=1
@@ -849,9 +849,7 @@ func Test_smoothscroll_zero_width_scroll_cursor_bot()
       silent normal 20G
   END
   call writefile(lines, 'XSmoothScrollZeroBot', 'D')
-  let buf = RunVimInTerminal('-u NONE -S XSmoothScrollZeroBot', #{rows: 19, wait_for_ruler: 0})
-  call TermWait(buf, 1000)
-
+  let buf = RunVimInTerminal('-u NONE -S XSmoothScrollZeroBot', #{rows: 19})
   call VerifyScreenDump(buf, 'Test_smoothscroll_zero_bot', {})
 
   call StopVimInTerminal(buf)
index 948a94800e7d4cb77879c8ccdf50cd057843389b..5c83d402944c27f14adb143338f4ed544798fe36 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1667,
 /**/
     1666,
 /**/