Skip to content

Commit

Permalink
feat: change ToC <space> behaviour
Browse files Browse the repository at this point in the history
Pressing <space> in ToC should move to the target location, but keep the
ToC window open. It makes more sense.

refer: #2062
  • Loading branch information
lervag committed Jun 1, 2021
1 parent f27055d commit b0d430b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions autoload/vimtex/toc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,6 @@ function! s:toc.activate_entry(entry, close_after) abort dict "{{{1
" Keep or close toc window (based on options)
if a:close_after && self.split_pos !=# 'full'
call self.close()
else
" Return to toc window
execute toc_winnr . 'wincmd w'
endif

" Allow user entry points through autocmd events
Expand Down

0 comments on commit b0d430b

Please sign in to comment.