summaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 21:33:57 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 21:33:57 +0000
commitdfe5f6d8279afac93ed0d09628139e0d968f4195 (patch)
tree12a136e7aa66c3555ed16093396920ba4d8b2c12 /debian/patches
parentDisabling mouse. (diff)
downloadvim-dfe5f6d8279afac93ed0d09628139e0d968f4195.tar.xz
vim-dfe5f6d8279afac93ed0d09628139e0d968f4195.zip
Disabling BufReadPost.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/progress-linux/0004-disable-BufReadPost.patch21
-rw-r--r--debian/patches/series1
2 files changed, 22 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
+
diff --git a/debian/patches/series b/debian/patches/series
index 6576226..9100762 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ Fix-GH-267-where-indent-after-a-sub-would-not-work.patch
progress-linux/0001-syntax-debchangelog.patch
progress-linux/0002-syntax-debsources.patch
progress-linux/0003-disable-mouse.patch
+progress-linux/0004-disable-BufReadPost.patch