Use the proper blacklist variable
... for checking if we're editing a git commit message
This commit is contained in:
parent
0ecbd2497c
commit
78a17af0c6
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ augroup END
|
|||
" jump to last opened position in file except in git commits
|
||||
let jump_to_pos_blacklist = ['gitcommit']
|
||||
if has("autocmd")
|
||||
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") && index(blacklist, &ft) | exe "normal! g'\"" | endif
|
||||
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") && index(jump_to_pos_blacklist, &ft) | exe "normal! g'\"" | endif
|
||||
endif
|
||||
|
||||
" no empty buffer on startup
|
||||
|
|
Reference in a new issue