summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2017-02-15 12:00:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2017-08-16 18:56:54 +0000
commit473d36e939fb1f36acd94bf77d26aaf9d2524dee (patch)
treee1c2632a88ce3b81325a26071eac979eaec92ed3
parentDisabling mouse by default because it is a too intrusive behaviour change as ... (diff)
downloadvim-473d36e939fb1f36acd94bf77d26aaf9d2524dee.zip
vim-473d36e939fb1f36acd94bf77d26aaf9d2524dee.tar.xz
Disabling BufReadPost by default because it is a too intrusive behaviour change as a default.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/patches/progress-linux/0002-disable-BufReadPost.patch21
-rw-r--r--debian/patches/series1
2 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0002-disable-BufReadPost.patch b/debian/patches/progress-linux/0002-disable-BufReadPost.patch
new file mode 100644
index 0000000..08f9dcb
--- /dev/null
+++ b/debian/patches/progress-linux/0002-disable-BufReadPost.patch
@@ -0,0 +1,21 @@
+Author: Daniel Baumann <daniel.baumann@progress-linux.org>
+Description: Disabling BufReadPost by default because it is a too intrusive behaviour change as a default.
+
+diff -Naurp vim.orig/runtime/defaults.vim vim/runtime/defaults.vim
+--- vim.orig/runtime/defaults.vim
++++ vim/runtime/defaults.vim
+@@ -99,10 +99,10 @@ if has("autocmd")
+ " When editing a file, always jump to the last known cursor position.
+ " Don't do it when the position is invalid or when inside an event handler
+ " (happens when dropping a file on gvim).
+- autocmd BufReadPost *
+- \ if line("'\"") >= 1 && line("'\"") <= line("$") |
+- \ exe "normal! g`\"" |
+- \ endif
++ "autocmd BufReadPost *
++ " \ if line("'\"") >= 1 && line("'\"") <= line("$") |
++ " \ exe "normal! g`\"" |
++ " \ endif
+
+ augroup END
+
diff --git a/debian/patches/series b/debian/patches/series
index a85f662..c40d6bc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -14,3 +14,4 @@ upstream/patch-8.0.0703-illegal-memory-access-with-empty-doau-comm.patch
upstream/patch-8.0.0706-crash-when-cancelling-the-cmdline-window-i.patch
upstream/patch-8.0.0707-freeing-wrong-memory-with-certain-autocomm.patch
progress-linux/0001-disable-mouse.patch
+progress-linux/0002-disable-BufReadPost.patch