Use the proper blacklist variable
... for checking if we're editing a git commit message
This commit is contained in:
parent
0ecbd2497c
commit
78a17af0c6
|
@ -367,7 +367,7 @@ augroup END
|
||||||
" jump to last opened position in file except in git commits
|
" jump to last opened position in file except in git commits
|
||||||
let jump_to_pos_blacklist = ['gitcommit']
|
let jump_to_pos_blacklist = ['gitcommit']
|
||||||
if has("autocmd")
|
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
|
endif
|
||||||
|
|
||||||
" no empty buffer on startup
|
" no empty buffer on startup
|
||||||
|
|
Reference in a new issue