summaryrefslogtreecommitdiffstats
path: root/debian/patches/progress-linux/0004-disable-BufReadPost.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:57:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:57:11 +0000
commit5e82021adbbea8da6a78a8380858b0bb9243aaa5 (patch)
tree5ff33ee012b4fa07d79d7b2e3fce3ede3d0b8441 /debian/patches/progress-linux/0004-disable-BufReadPost.patch
parentDisabling mouse. (diff)
downloadvim-5e82021adbbea8da6a78a8380858b0bb9243aaa5.tar.xz
vim-5e82021adbbea8da6a78a8380858b0bb9243aaa5.zip
Disabling BufReadPost.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/progress-linux/0004-disable-BufReadPost.patch')
-rw-r--r--debian/patches/progress-linux/0004-disable-BufReadPost.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0004-disable-BufReadPost.patch b/debian/patches/progress-linux/0004-disable-BufReadPost.patch
new file mode 100644
index 0000000..84265a7
--- /dev/null
+++ b/debian/patches/progress-linux/0004-disable-BufReadPost.patch
@@ -0,0 +1,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
+