mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
@@ -919,7 +919,8 @@ end_do_tag:
|
|||||||
/* Only store the new index when using the tagstack and it's valid. */
|
/* Only store the new index when using the tagstack and it's valid. */
|
||||||
if (use_tagstack && tagstackidx <= curwin->w_tagstacklen)
|
if (use_tagstack && tagstackidx <= curwin->w_tagstacklen)
|
||||||
curwin->w_tagstackidx = tagstackidx;
|
curwin->w_tagstackidx = tagstackidx;
|
||||||
postponed_split = 0; /* don't split next time */
|
postponed_split = 0; // don't split next time
|
||||||
|
g_do_tagpreview = 0; // don't do tag preview next time
|
||||||
|
|
||||||
return jumped_to_tag;
|
return jumped_to_tag;
|
||||||
}
|
}
|
||||||
|
@@ -95,8 +95,17 @@ function RunTheTest(test)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Close any extra windows and make the current one not modified.
|
" Close any extra windows and make the current one not modified.
|
||||||
while winnr('$') > 1
|
while 1
|
||||||
|
let wincount = winnr('$')
|
||||||
|
if wincount == 1
|
||||||
|
break
|
||||||
|
endif
|
||||||
bwipe!
|
bwipe!
|
||||||
|
if wincount == winnr('$')
|
||||||
|
" Did not manage to close a window.
|
||||||
|
only!
|
||||||
|
break
|
||||||
|
endif
|
||||||
endwhile
|
endwhile
|
||||||
set nomodified
|
set nomodified
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -458,4 +458,4 @@ func! Test_digraph_cmndline()
|
|||||||
call assert_equal("€", s)
|
call assert_equal("€", s)
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" vim: tabstop=2 shiftwidth=0 sts=-1 expandtab
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -90,4 +90,4 @@ func Test_gn_command()
|
|||||||
sil! %d _
|
sil! %d _
|
||||||
endfu
|
endfu
|
||||||
|
|
||||||
" vim: tabstop=2 shiftwidth=0 expandtab
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -162,4 +162,4 @@ func Test_help_complete()
|
|||||||
endtry
|
endtry
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" vim: et sw=2:
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -757,4 +757,4 @@ func Test_normal_increment_03()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
|
||||||
" vim: tabstop=2 shiftwidth=2 expandtab
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -26,4 +26,4 @@ func Test_increment_dbcs_1()
|
|||||||
call assert_equal([0, 1, 13, 0], getpos('.'))
|
call assert_equal([0, 1, 13, 0], getpos('.'))
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" vim: shiftwidth=2 expandtab
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -231,4 +231,4 @@ func Test_matchaddpos_using_negative_priority()
|
|||||||
set hlsearch&
|
set hlsearch&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" vim: et ts=2 sw=2
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -6,4 +6,21 @@ func Test_ptag_with_notagstack()
|
|||||||
call assert_fails('ptag does_not_exist_tag_name', 'E426')
|
call assert_fails('ptag does_not_exist_tag_name', 'E426')
|
||||||
set tagstack&vim
|
set tagstack&vim
|
||||||
endfunc
|
endfunc
|
||||||
" vim: sw=2 et
|
|
||||||
|
func Test_cancel_ptjump()
|
||||||
|
set tags=Xtags
|
||||||
|
call writefile(["!_TAG_FILE_ENCODING\tutf-8\t//",
|
||||||
|
\ "word\tfile1\tcmd1",
|
||||||
|
\ "word\tfile2\tcmd2"],
|
||||||
|
\ 'Xtags')
|
||||||
|
|
||||||
|
only!
|
||||||
|
call feedkeys(":ptjump word\<CR>\<CR>", "xt")
|
||||||
|
help
|
||||||
|
call assert_equal(2, winnr('$'))
|
||||||
|
|
||||||
|
call delete('Xtags')
|
||||||
|
quit
|
||||||
|
endfunc
|
||||||
|
|
||||||
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -52,4 +52,5 @@ func Test_retain_partial()
|
|||||||
call garbagecollect()
|
call garbagecollect()
|
||||||
sleep 200m
|
sleep 200m
|
||||||
endfunc
|
endfunc
|
||||||
" vim: ts=2 sw=0 et
|
|
||||||
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -67,4 +67,4 @@ function Test_window_cmd_wincmd_gf()
|
|||||||
augroup! test_window_cmd_wincmd_gf
|
augroup! test_window_cmd_wincmd_gf
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" vim: sw=2 et
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -193,7 +193,7 @@ static int included_patches[] = {
|
|||||||
2251,
|
2251,
|
||||||
// 2250,
|
// 2250,
|
||||||
2249,
|
2249,
|
||||||
// 2248,
|
2248,
|
||||||
// 2247 NA
|
// 2247 NA
|
||||||
// 2246,
|
// 2246,
|
||||||
// 2245,
|
// 2245,
|
||||||
@@ -213,7 +213,7 @@ static int included_patches[] = {
|
|||||||
// 2231,
|
// 2231,
|
||||||
2230,
|
2230,
|
||||||
// 2229,
|
// 2229,
|
||||||
// 2228,
|
2228,
|
||||||
2227,
|
2227,
|
||||||
2226,
|
2226,
|
||||||
2225,
|
2225,
|
||||||
|
Reference in New Issue
Block a user