app-editors/vim-core: disregard user mappings when restoring cursor position
authorTim Harder <radhermit@gentoo.org>
Thu, 1 Dec 2016 00:22:04 +0000 (19:22 -0500)
committerTim Harder <radhermit@gentoo.org>
Thu, 1 Dec 2016 00:23:50 +0000 (19:23 -0500)
This fixes bug #598726.

app-editors/vim-core/files/vimrc-r5

index fdc316b4c35b5693896ba17910aaac71064a23ad..8143be5fb48db930ab9f46358dfff0f1bee9b74a 100644 (file)
@@ -167,7 +167,7 @@ augroup gentoo
   autocmd BufReadPost *
         \ if ! exists("g:leave_my_cursor_position_alone") |
         \     if line("'\"") > 0 && line ("'\"") <= line("$") |
-        \         exe "normal g'\"" |
+        \         exe "normal! g'\"" |
         \     endif |
         \ endif