mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00:00
Merge pull request #14251 from janlazo/vim-8.1.1193
vim-patch:8.1.{936,1193}
This commit is contained in:
@@ -2001,7 +2001,9 @@ static void didset_options2(void)
|
|||||||
|
|
||||||
// Parse default for 'wildmode'.
|
// Parse default for 'wildmode'.
|
||||||
check_opt_wim();
|
check_opt_wim();
|
||||||
|
xfree(curbuf->b_p_vsts_array);
|
||||||
tabstop_set(curbuf->b_p_vsts, &curbuf->b_p_vsts_array);
|
tabstop_set(curbuf->b_p_vsts, &curbuf->b_p_vsts_array);
|
||||||
|
xfree(curbuf->b_p_vts_array);
|
||||||
tabstop_set(curbuf->b_p_vts, &curbuf->b_p_vts_array);
|
tabstop_set(curbuf->b_p_vts, &curbuf->b_p_vts_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3167,9 +3169,7 @@ ambw_end:
|
|||||||
if (errmsg == NULL) {
|
if (errmsg == NULL) {
|
||||||
long *oldarray = curbuf->b_p_vts_array;
|
long *oldarray = curbuf->b_p_vts_array;
|
||||||
if (tabstop_set(*varp, &(curbuf->b_p_vts_array))) {
|
if (tabstop_set(*varp, &(curbuf->b_p_vts_array))) {
|
||||||
if (oldarray) {
|
|
||||||
xfree(oldarray);
|
xfree(oldarray);
|
||||||
}
|
|
||||||
if (foldmethodIsIndent(curwin)) {
|
if (foldmethodIsIndent(curwin)) {
|
||||||
foldUpdateAll(curwin);
|
foldUpdateAll(curwin);
|
||||||
}
|
}
|
||||||
|
@@ -1,9 +1,8 @@
|
|||||||
" Test for gn command
|
" Test for gn command
|
||||||
|
|
||||||
func Test_gn_command()
|
func Test_gn_command()
|
||||||
set belloff=all
|
|
||||||
noautocmd new
|
noautocmd new
|
||||||
" replace a single char by itsself quoted:
|
" replace a single char by itself quoted:
|
||||||
call setline('.', 'abc x def x ghi x jkl')
|
call setline('.', 'abc x def x ghi x jkl')
|
||||||
let @/ = 'x'
|
let @/ = 'x'
|
||||||
exe "norm! cgn'x'\<esc>.."
|
exe "norm! cgn'x'\<esc>.."
|
||||||
@@ -157,7 +156,6 @@ func Test_gn_command()
|
|||||||
sil! %d _
|
sil! %d _
|
||||||
|
|
||||||
set wrapscan&vim
|
set wrapscan&vim
|
||||||
set belloff&vim
|
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_gN_repeat()
|
func Test_gN_repeat()
|
||||||
|
@@ -97,7 +97,7 @@ func Do_test_quotestar_for_x11()
|
|||||||
if has('unix') && has('gui') && !has('gui_running')
|
if has('unix') && has('gui') && !has('gui_running')
|
||||||
let @* = ''
|
let @* = ''
|
||||||
|
|
||||||
" Running in a terminal and the GUI is avaiable: Tell the server to open
|
" Running in a terminal and the GUI is available: Tell the server to open
|
||||||
" the GUI and check that the remote command still works.
|
" the GUI and check that the remote command still works.
|
||||||
" Need to wait for the GUI to start up, otherwise the send hangs in trying
|
" Need to wait for the GUI to start up, otherwise the send hangs in trying
|
||||||
" to send to the terminal window.
|
" to send to the terminal window.
|
||||||
|
@@ -109,6 +109,8 @@ func Test_recording_esc_sequence()
|
|||||||
bwipe!
|
bwipe!
|
||||||
if exists('save_F2')
|
if exists('save_F2')
|
||||||
let &t_F2 = save_F2
|
let &t_F2 = save_F2
|
||||||
|
else
|
||||||
|
set t_F2=
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
@@ -142,9 +142,6 @@ endfunc
|
|||||||
|
|
||||||
" Test autocommands
|
" Test autocommands
|
||||||
function Test_tabpage_with_autocmd()
|
function Test_tabpage_with_autocmd()
|
||||||
if !has('autocmd')
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
command -nargs=1 -bar C :call add(s:li, '=== ' . <q-args> . ' ===')|<args>
|
command -nargs=1 -bar C :call add(s:li, '=== ' . <q-args> . ' ===')|<args>
|
||||||
augroup TestTabpageGroup
|
augroup TestTabpageGroup
|
||||||
au!
|
au!
|
||||||
|
@@ -5,6 +5,7 @@ if !has("vartabs")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
source view_util.vim
|
source view_util.vim
|
||||||
|
|
||||||
func s:compare_lines(expect, actual)
|
func s:compare_lines(expect, actual)
|
||||||
call assert_equal(join(a:expect, "\n"), join(a:actual, "\n"))
|
call assert_equal(join(a:expect, "\n"), join(a:actual, "\n"))
|
||||||
endfunc
|
endfunc
|
||||||
@@ -372,3 +373,9 @@ func Test_vartabs_failures()
|
|||||||
call assert_fails('set vts=,8')
|
call assert_fails('set vts=,8')
|
||||||
call assert_fails('set vsts=,8')
|
call assert_fails('set vsts=,8')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_vartabs_reset()
|
||||||
|
set vts=8
|
||||||
|
set all&
|
||||||
|
call assert_equal('', &vts)
|
||||||
|
endfunc
|
||||||
|
@@ -255,7 +255,6 @@ func TriggerTheProblem()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_visual_mode_reset()
|
func Test_visual_mode_reset()
|
||||||
set belloff=all
|
|
||||||
enew
|
enew
|
||||||
let g:msg = "Everything's fine."
|
let g:msg = "Everything's fine."
|
||||||
enew
|
enew
|
||||||
@@ -268,7 +267,6 @@ func Test_visual_mode_reset()
|
|||||||
exe "normal! GV:call TriggerTheProblem()\<CR>"
|
exe "normal! GV:call TriggerTheProblem()\<CR>"
|
||||||
call assert_equal("Everything's fine.", g:msg)
|
call assert_equal("Everything's fine.", g:msg)
|
||||||
|
|
||||||
set belloff&
|
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_Visual_word_textobject()
|
func Test_Visual_word_textobject()
|
||||||
|
Reference in New Issue
Block a user