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
|
||||
|
||||
" Open file buffer
|
||||
execute cmd bnr
|
||||
execute 'keepalt' cmd bnr
|
||||
|
||||
" Go to entry line
|
||||
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)
|
||||
if a:close
|
||||
if g:vimtex_index_resize
|
||||
silent exe 'set columns -=' . g:vimtex_index_split_width
|
||||
if bufexists(toc_bnr)
|
||||
if g:vimtex_index_resize
|
||||
silent exe 'set columns -=' . g:vimtex_index_split_width
|
||||
endif
|
||||
execute 'bwipeout ' . toc_bnr
|
||||
endif
|
||||
execute 'bwipeout ' . toc_bnr
|
||||
else
|
||||
execute toc_wnr . 'wincmd w'
|
||||
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…
Reference in New Issue
Block a user