Skip to content

Commit 40dc4d4

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 49d310b + 712598f commit 40dc4d4

File tree

4 files changed

+53
-5
lines changed

4 files changed

+53
-5
lines changed

src/normal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6284,9 +6284,9 @@ nv_gotofile(cmdarg_T *cap)
62846284
if (curbufIsChanged() && curbuf->b_nwindows <= 1 && !P_HID(curbuf))
62856285
(void)autowrite(curbuf, FALSE);
62866286
setpcmark();
6287-
(void)do_ecmd(0, ptr, NULL, NULL, ECMD_LAST,
6288-
P_HID(curbuf) ? ECMD_HIDE : 0, curwin);
6289-
if (cap->nchar == 'F' && lnum >= 0)
6287+
if (do_ecmd(0, ptr, NULL, NULL, ECMD_LAST,
6288+
P_HID(curbuf) ? ECMD_HIDE : 0, curwin) == OK
6289+
&& cap->nchar == 'F' && lnum >= 0)
62906290
{
62916291
curwin->w_cursor.lnum = lnum;
62926292
check_cursor_lnum();

src/testdir/test_gf.vim

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
" This is a test if a URL is recognized by "gf", with the cursor before and
33
" after the "://". Also test ":\\".
4-
function! Test_gf_url()
4+
func Test_gf_url()
55
enew!
66
call append(0, [
77
\ "first test for URL://machine.name/tmp/vimtest2a and other text",
@@ -30,4 +30,27 @@ function! Test_gf_url()
3030

3131
set isf&vim
3232
enew!
33-
endfunction
33+
endfunc
34+
35+
func Test_gF()
36+
new
37+
call setline(1, ['111', '222', '333', '444'])
38+
w! Xfile
39+
close
40+
new
41+
set isfname-=:
42+
call setline(1, ['one', 'Xfile:3', 'three'])
43+
2
44+
call assert_fails('normal gF', 'E37:')
45+
call assert_equal(2, getcurpos()[1])
46+
w! Xfile2
47+
normal gF
48+
call assert_equal('Xfile', bufname('%'))
49+
call assert_equal(3, getcurpos()[1])
50+
51+
set isfname&
52+
call delete('Xfile')
53+
call delete('Xfile2')
54+
bwipe Xfile
55+
bwipe Xfile2
56+
endfunc

src/testdir/test_spell.vim

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,20 @@ func Test_z_equal_on_invalid_utf8_word()
2727
set nospell
2828
bwipe!
2929
endfunc
30+
31+
func Test_spellreall()
32+
new
33+
set spell
34+
call assert_fails('spellrepall', 'E752:')
35+
call setline(1, ['A speling mistake. The same speling mistake.',
36+
\ 'Another speling mistake.'])
37+
call feedkeys(']s1z=', 'tx')
38+
call assert_equal('A spelling mistake. The same speling mistake.', getline(1))
39+
call assert_equal('Another speling mistake.', getline(2))
40+
spellrepall
41+
call assert_equal('A spelling mistake. The same spelling mistake.', getline(1))
42+
call assert_equal('Another spelling mistake.', getline(2))
43+
call assert_fails('spellrepall', 'E753:')
44+
set spell&
45+
bwipe!
46+
endfunc

src/version.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,14 @@ static char *(features[]) =
779779

780780
static int included_patches[] =
781781
{ /* Add new patch number below this line */
782+
/**/
783+
604,
784+
/**/
785+
603,
786+
/**/
787+
602,
788+
/**/
789+
601,
782790
/**/
783791
600,
784792
/**/

0 commit comments

Comments
 (0)