summaryrefslogtreecommitdiffstats
path: root/debian/patches/progress-linux/0003-disable-BufReadPost.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/progress-linux/0003-disable-BufReadPost.patch')
-rw-r--r--debian/patches/progress-linux/0003-disable-BufReadPost.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0003-disable-BufReadPost.patch b/debian/patches/progress-linux/0003-disable-BufReadPost.patch
new file mode 100644
index 0000000..c783e6a
--- /dev/null
+++ b/debian/patches/progress-linux/0003-disable-BufReadPost.patch
@@ -0,0 +1,25 @@
+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
+@@ -108,12 +108,12 @@ if 1
+ " (likely a different one than last time), and when using xxd(1) to filter
+ " and edit binary files (it transforms input files back and forth, causing
+ " them to have dual nature, so to speak)
+- autocmd BufReadPost *
+- \ let line = line("'\"")
+- \ | if line >= 1 && line <= line("$") && &filetype !~# 'commit'
+- \ && index(['xxd', 'gitrebase'], &filetype) == -1
+- \ | execute "normal! g`\""
+- \ | endif
++ "autocmd BufReadPost *
++ " \ let line = line("'\"")
++ " \ | if line >= 1 && line <= line("$") && &filetype !~# 'commit'
++ " \ && index(['xxd', 'gitrebase'], &filetype) == -1
++ " \ | execute "normal! g`\""
++ " \ | endif
+
+ augroup END
+