Fix #549: Ensure alternate buffer is untouched
Also fixed minor issue with bufwipeout.
This commit is contained in:
parent
be6d03b7cc
commit
02768f5bad
@ -167,7 +167,7 @@ function! s:actions_activate(close) dict "{{{1
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Open file buffer
|
" Open file buffer
|
||||||
execute cmd bnr
|
execute 'keepalt' cmd bnr
|
||||||
|
|
||||||
" Go to entry line
|
" Go to entry line
|
||||||
call setpos('.', [0, entry.line, 0, 0])
|
call setpos('.', [0, entry.line, 0, 0])
|
||||||
@ -177,10 +177,12 @@ function! s:actions_activate(close) dict "{{{1
|
|||||||
|
|
||||||
" Keep or close index window (based on options)
|
" Keep or close index window (based on options)
|
||||||
if a:close
|
if a:close
|
||||||
if g:vimtex_index_resize
|
if bufexists(toc_bnr)
|
||||||
silent exe 'set columns -=' . g:vimtex_index_split_width
|
if g:vimtex_index_resize
|
||||||
|
silent exe 'set columns -=' . g:vimtex_index_split_width
|
||||||
|
endif
|
||||||
|
execute 'bwipeout ' . toc_bnr
|
||||||
endif
|
endif
|
||||||
execute 'bwipeout ' . toc_bnr
|
|
||||||
else
|
else
|
||||||
execute toc_wnr . 'wincmd w'
|
execute toc_wnr . 'wincmd w'
|
||||||
endif
|
endif
|
||||||
|
5
test/examples/book-multifile/minivimrc
Normal file
5
test/examples/book-multifile/minivimrc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
set nocompatible
|
||||||
|
let &rtp = '~/.vim/bundle/vimtex,' . &rtp
|
||||||
|
let &rtp .= ',~/.vim/bundle/vimtex/after'
|
||||||
|
filetype plugin indent on
|
||||||
|
syntax enable
|
Loading…
x
Reference in New Issue
Block a user