From bbfe2176ee4038e557685d784a1ed5e27806d3c7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:18:20 +0200 Subject: Disabling BufReadPost. Signed-off-by: Daniel Baumann --- .../progress-linux/0003-disable-BufReadPost.patch | 25 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 26 insertions(+) create mode 100644 debian/patches/progress-linux/0003-disable-BufReadPost.patch (limited to 'debian') 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 +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 + diff --git a/debian/patches/series b/debian/patches/series index 3359705..dadfd69 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ debian/Add-recognition-of-more-LaTeX-commands-for-tex-filetype-d.patch debian/Document-Debian-s-decision-to-disable-modelines-by-defaul.patch progress-linux/0001-syntax-debversions.patch progress-linux/0002-disable-mouse.patch +progress-linux/0003-disable-BufReadPost.patch -- cgit v1.2.3