commit: f75e7300cf7eba9070a39a6000e1099fb6a305cd
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 1 00:22:04 2016 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Thu Dec 1 00:23:50 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f75e7300
app-editors/vim-core: disregard user mappings when restoring cursor position
This fixes bug #598726.
app-editors/vim-core/files/vimrc-r5 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app-editors/vim-core/files/vimrc-r5
b/app-editors/vim-core/files/vimrc-r5
index fdc316b..8143be5 100644
--- a/app-editors/vim-core/files/vimrc-r5
+++ b/app-editors/vim-core/files/vimrc-r5
@@ -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