From 5e82021adbbea8da6a78a8380858b0bb9243aaa5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 04:57:11 +0200 Subject: Disabling BufReadPost. Signed-off-by: Daniel Baumann --- .../progress-linux/0004-disable-BufReadPost.patch | 21 +++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 22 insertions(+) create mode 100644 debian/patches/progress-linux/0004-disable-BufReadPost.patch (limited to 'debian/patches') 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 +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 5862d3b..668a530 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -24,3 +24,4 @@ upstream/patch-8.2.3428-using-freed-memory-when-replacing.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 -- cgit v1.2.3