From 78a17af0c6135dee76f8422d913467ca5f157a09 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 17 Mar 2017 13:59:31 -0500 Subject: [PATCH] Use the proper blacklist variable ... for checking if we're editing a git commit message --- text-editor/neovim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text-editor/neovim/init.vim b/text-editor/neovim/init.vim index f4000a8..0b1fe65 100644 --- a/text-editor/neovim/init.vim +++ b/text-editor/neovim/init.vim @@ -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