Patch 8.2.1586
Problem:    :resize command not fully tested.
Solution:   Add a couple of tests. (Dominique Pellé, closes #6857)
Files:      src/testdir/test_window_cmd.vim


*** ../vim-8.2.1585/src/testdir/test_window_cmd.vim     2020-08-12 
18:50:31.887655765 +0200
--- src/testdir/test_window_cmd.vim     2020-09-04 14:39:56.389406024 +0200
***************
*** 1106,1111 ****
--- 1106,1153 ----
    call assert_beeps("normal \<C-W>2gt")
  endfunc
  
+ func Test_window_resize()
+   " Vertical :resize (absolute, relative, min and max size).
+   vsplit
+   vert resize 8
+   call assert_equal(8, winwidth(0))
+   vert resize +2
+   call assert_equal(10, winwidth(0))
+   vert resize -2
+   call assert_equal(8, winwidth(0))
+   vert resize
+   call assert_equal(&columns - 2, winwidth(0))
+   vert resize 0
+   call assert_equal(1, winwidth(0))
+   vert resize 99999
+   call assert_equal(&columns - 2, winwidth(0))
+ 
+   %bwipe!
+ 
+   " Horizontal :resize (with absolute, relative size, min and max size).
+   split
+   resize 8
+   call assert_equal(8, winheight(0))
+   resize +2
+   call assert_equal(10, winheight(0))
+   resize -2
+   call assert_equal(8, winheight(0))
+   resize
+   call assert_equal(&lines - 4, winheight(0))
+   resize 0
+   call assert_equal(1, winheight(0))
+   resize 99999
+   call assert_equal(&lines - 4, winheight(0))
+ 
+   " :resize with explicit window number.
+   let other_winnr = winnr('j')
+   exe other_winnr .. 'resize 10'
+   call assert_equal(10, winheight(other_winnr))
+   call assert_equal(&lines - 10 - 3, winheight(0))
+ 
+   %bwipe!
+ endfunc
+ 
  " Test for adjusting the window width when a window is closed with some
  " windows using 'winfixwidth'
  func Test_window_width_adjust()
*** ../vim-8.2.1585/src/version.c       2020-09-04 13:52:56.880114208 +0200
--- src/version.c       2020-09-04 14:41:01.481193060 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     1586,
  /**/

-- 
The question is:  What do you do with your life?
The wrong answer is: Become the richest guy in the graveyard.
                                (billionaire and Oracle founder Larry Ellison)

 /// 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/202009041242.084Cg42W304164%40masaka.moolenaar.net.

Raspunde prin e-mail lui