Patch 8.1.2206
Problem:    No test for fixed issue #3893.
Solution:   Add a test. (Christian Brabandt, #3893)
Files:      src/testdir/test_display.vim,
            src/testdir/dumps/Test_winline_rnu.dump


*** ../vim-8.1.2205/src/testdir/test_display.vim        2019-09-20 
17:00:05.443834632 +0200
--- src/testdir/test_display.vim        2019-10-24 15:07:50.801060296 +0200
***************
*** 158,160 ****
--- 158,183 ----
    set list& listchars& wrap&
    bw!
  endfunc
+ 
+ " Check that win_lines() works correctly with the number_only parameter=TRUE
+ " should break early to optimize cost of drawing, but needs to make sure
+ " that the number column is correctly highlighted.
+ func Test_scroll_CursorLineNr_update()
+   CheckScreendump
+ 
+   let lines =<< trim END
+     hi CursorLineNr ctermfg=73 ctermbg=236
+     set nu rnu cursorline cursorlineopt=number
+     exe ":norm! o\<esc>110ia\<esc>"
+   END
+   let filename = 'Xdrawscreen'
+   call writefile(lines, filename)
+   let buf = RunVimInTerminal('-S '.filename, #{rows: 5, cols: 50})
+   call term_sendkeys(buf, "k")
+   call term_wait(buf)
+   call VerifyScreenDump(buf, 'Test_winline_rnu', {})
+ 
+   " clean up
+   call StopVimInTerminal(buf)
+   call delete(filename)
+ endfunc
*** ../vim-8.1.2205/src/testdir/dumps/Test_winline_rnu.dump     2019-10-24 
15:12:12.627966837 +0200
--- src/testdir/dumps/Test_winline_rnu.dump     2019-10-24 15:11:08.064235452 
+0200
***************
*** 0 ****
--- 1,5 ----
+ |1+8#5fafaf255#303030255| @2> +0#0000000#ffffff0@45
+ | +0#af5f00255&@1|1| |a+0#0000000&@45
+ | +0#af5f00255&@3|a+0#0000000&@45
+ | +0#af5f00255&@3|a+0#0000000&@17| @27
+ @32|1|,|0|-|1| @8|A|l@1| 
*** ../vim-8.1.2205/src/version.c       2019-10-24 14:59:58.035079639 +0200
--- src/version.c       2019-10-24 15:11:59.972019456 +0200
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     2206,
  /**/

-- 
I have read and understood the above. X________________

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201910241313.x9ODD6DQ016708%40masaka.moolenaar.net.

Raspunde prin e-mail lui