diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 21:33:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 21:33:57 +0000 |
commit | f3173bdb629c21a504b9c5c0bdced5c44bd7670d (patch) | |
tree | f2b1ec5bb217460e305974b24e1631cfb8ad3c65 /debian/patches/progress-linux | |
parent | Updating debsources syntax for Progress Linux 1 to 9. (diff) | |
download | vim-f3173bdb629c21a504b9c5c0bdced5c44bd7670d.tar.xz vim-f3173bdb629c21a504b9c5c0bdced5c44bd7670d.zip |
Disabling mouse.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/progress-linux')
-rw-r--r-- | debian/patches/progress-linux/0003-disable-mouse.patch | 27 |
1 files changed, 27 insertions, 0 deletions
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 <daniel.baumann@progress-linux.org> +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 <C-U> <C-G>u<C-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 |