do not set cursor position to last editing position for git commit messages

This commit is contained in:
josh committed 2020-12-18 14:34:21 -05:00
1 parent 40a3ce0dea
commit 848779f332
1 file changed
+1 -1
+1 -1
View File
@@ -165,7 +165,7 @@ if has("autocmd")
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ if (bufname("%") =~ "COMMIT_EDITMSG") == 0 && line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif