From 38e3175bbd299224975c0a0cb594842b22336cee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 10:54:08 +0200 Subject: Disabling mouse. Signed-off-by: Daniel Baumann --- .../progress-linux/0003-disable-mouse.patch | 27 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 28 insertions(+) create mode 100644 debian/patches/progress-linux/0003-disable-mouse.patch diff --git a/debian/patches/progress-linux/0003-disable-mouse.patch b/debian/patches/progress-linux/0003-disable-mouse.patch new file mode 100644 index 0000000..121de9b --- /dev/null +++ b/debian/patches/progress-linux/0003-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 543a35e..6576226 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ patch-9.0.1499-using-uninitialized-memory-with-fuzzy-matc.patch Fix-GH-267-where-indent-after-a-sub-would-not-work.patch progress-linux/0001-syntax-debchangelog.patch progress-linux/0002-syntax-debsources.patch +progress-linux/0003-disable-mouse.patch -- cgit v1.2.3