From b51fe9aed4b7a05d9d9355d312fd0f03e6ef8b6763bd0bc92d99f0d3f5546944 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 2 Nov 2021 09:55:20 +0000 Subject: [PATCH] Gvim has its own terminal like screen OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=685 --- suse.vimrc | 6 ++++-- vim.changes | 5 +++++ vim.spec | 10 ++++++---- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/suse.vimrc b/suse.vimrc index e37a22a..db4513f 100644 --- a/suse.vimrc +++ b/suse.vimrc @@ -292,8 +292,10 @@ endif " This escape sequence is the well known ANSI sequence for " Remove Character Under The Cursor (RCUTC[tm]) -map! [3~ -map [3~ x +if !has("gui_running") + map! [3~ + map [3~ x +endif " Only do this part when compiled with support for autocommands. if has("autocmd") diff --git a/vim.changes b/vim.changes index d937b33..8d73b60 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 2 09:50:30 UTC 2021 - Dr. Werner Fink + +- Avoid the second to parse the Delete ANSI sequence in gvim + ------------------------------------------------------------------- Sun Oct 31 10:11:52 UTC 2021 - Ondřej Súkup diff --git a/vim.spec b/vim.spec index 63ce69c..612dbd4 100644 --- a/vim.spec +++ b/vim.spec @@ -101,7 +101,7 @@ Requires: vim-data-common = %{version}-%{release} Requires: alts %else Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives %endif Recommends: vim-data = %{version}-%{release} Conflicts: vim-base < 8.2 @@ -155,7 +155,7 @@ BuildRequires: alts Requires: alts %else Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives %endif Conflicts: gvim < 8.2 Provides: gvim-base = %{version}-%{release} @@ -180,7 +180,7 @@ BuildRequires: alts Requires: alts %else Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives %endif Provides: vi Provides: vim_client @@ -485,7 +485,7 @@ LC_ALL=en_US.UTF-8 make -j1 test %pre # removing old update-alternatives entries if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] && [ ! -e %{_bindir}/vim-nox11 ]; then - %{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-nox11 + %{_sbindir}/update-alternatives --remove vim %{_bindir}/vim-nox11 fi %pre -n gvim @@ -500,9 +500,11 @@ fi %post -n gvim %icon_theme_cache_post + %postun -n gvim %icon_theme_cache_postun %else + # without libalternatives %post %{_sbindir}/update-alternatives \