Patch 8.1.2270
Problem:    "gf" is not tested in Visual mode.
Solution:   Add Visual mode test and test errors. (Dominique Pelle,
            closes #5197)
Files:      src/testdir/test_gf.vim


*** ../vim-8.1.2269/src/testdir/test_gf.vim     2019-05-06 21:59:42.194211119 
+0200
--- src/testdir/test_gf.vim     2019-11-08 21:49:06.649658603 +0100
***************
*** 99,101 ****
--- 99,126 ----
    call delete('Xtest1')
    call delete('Xtestgf')
  endfunc
+ 
+ func Test_gf_visual()
+   call writefile([], "Xtest_gf_visual")
+   new
+   call setline(1, 'XXXtest_gf_visualXXX')
+   set hidden
+ 
+   " Visually select Xtest_gf_visual and use gf to go to that file
+   norm! ttvtXgf
+   call assert_equal('Xtest_gf_visual', bufname('%'))
+ 
+   bwipe!
+   call delete('Xtest_gf_visual')
+   set hidden&
+ endfunc
+ 
+ func Test_gf_error()
+   new
+   call assert_fails('normal gf', 'E446:')
+   call assert_fails('normal gF', 'E446:')
+   call setline(1, '/doesnotexist')
+   call assert_fails('normal gf', 'E447:')
+   call assert_fails('normal gF', 'E447:')
+   bwipe!
+ endfunc
*** ../vim-8.1.2269/src/version.c       2019-11-07 23:08:39.245164729 +0100
--- src/version.c       2019-11-08 21:49:22.633590759 +0100
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     2270,
  /**/

-- 
Microsoft is to software what McDonalds is to gourmet cooking

 /// 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/201911082050.xA8KoF2X001020%40masaka.moolenaar.net.

Raspunde prin e-mail lui