summaryrefslogtreecommitdiffstats
path: root/debian/patches/progress-linux/0004-disable-BufReadPost.patch
blob: 84265a7145c9c42bbe25eeff8ca48613ddc05ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Description: Disabling BufReadPost.

diff -Naurp vim.orig/runtime/defaults.vim vim/runtime/defaults.vim
--- vim.orig/runtime/defaults.vim
+++ vim/runtime/defaults.vim
@@ -109,10 +109,10 @@ if 1
     " Don't do it when the position is invalid, when inside an event handler
     " (happens when dropping a file on gvim) and for a commit message (it's
     " likely a different one than last time).
-    autocmd BufReadPost *
-      \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
-      \ |   exe "normal! g`\""
-      \ | endif
+    "autocmd BufReadPost *
+    "  \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
+    "  \ |   exe "normal! g`\""
+    "  \ | endif
 
   augroup END