From 087a79735c8536a9d0690b19fa6ec908e9453c87 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:18:20 +0200 Subject: Disabling mouse. Signed-off-by: Daniel Baumann --- .../progress-linux/0002-disable-mouse.patch | 27 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 28 insertions(+) create mode 100644 debian/patches/progress-linux/0002-disable-mouse.patch (limited to 'debian') diff --git a/debian/patches/progress-linux/0002-disable-mouse.patch b/debian/patches/progress-linux/0002-disable-mouse.patch new file mode 100644 index 0000000..121de9b --- /dev/null +++ b/debian/patches/progress-linux/0002-disable-mouse.patch @@ -0,0 +1,27 @@ +Author: Daniel Baumann +Description: Disabling mouse. + +diff -Naurp vim.orig/runtime/defaults.vim vim/runtime/defaults.vim +--- vim.orig/runtime/defaults.vim ++++ vim/runtime/defaults.vim +@@ -77,13 +77,13 @@ inoremap u + " can position the cursor, Visually select and scroll with the mouse. + " Only xterm can grab the mouse events when using the shift key, for other + " terminals use ":", select text and press Esc. +-if has('mouse') +- if &term =~ 'xterm' +- set mouse=a +- else +- set mouse=nvi +- endif +-endif ++"if has('mouse') ++" if &term =~ 'xterm' ++" set mouse=a ++" else ++" set mouse=nvi ++" endif ++"endif + + " Only do this part when Vim was compiled with the +eval feature. + if 1 diff --git a/debian/patches/series b/debian/patches/series index a121e21..3359705 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ debian/Detect-the-rst-filetype-using-the-contents-of-the-file.patch 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 -- cgit v1.2.3