# HG changeset patch # User Bram Moolenaar # Date 1638708303 -3600 # Node ID 4397cc04f2b136e2617705f09e64cb8fe7283a98 # Parent 71272fdce6626eb6b1b98f69ca368b02c448d46b patch 8.2.3742: dec mouse test fails without gnome terminfo entry Commit: https://github.com/vim/vim/commit/f589fd3e1047cdf90566b68aaf9a13389e54d26a Author: Dominique Pelle Date: Sun Dec 5 12:39:21 2021 +0000 patch 8.2.3742: dec mouse test fails without gnome terminfo entry Problem: Dec mouse test fails without gnome terminfo entry. Solution: Check if there is a gnome entry. Also fix 'acd' test on MS-Windows. (Dominique Pell?, closes #9282) diff --git a/src/testdir/test_autochdir.vim b/src/testdir/test_autochdir.vim --- a/src/testdir/test_autochdir.vim +++ b/src/testdir/test_autochdir.vim @@ -43,12 +43,12 @@ func Test_set_filename_other_window() finally set noacd call chdir(cwd) + bwipe! aaa.txt + bwipe! bbb.txt + bwipe! ccc.txt call delete('Xa', 'rf') call delete('Xb', 'rf') call delete('Xc', 'rf') - bwipe! aaa.txt - bwipe! bbb.txt - bwipe! ccc.txt endtry endfunc diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim --- a/src/testdir/test_termcodes.vim +++ b/src/testdir/test_termcodes.vim @@ -2041,6 +2041,10 @@ endfunc " Check that when DEC mouse codes are recognized a special key is handled. func Test_ignore_dec_mouse() + silent !infocmp gnome >/dev/null 2>&1 + if v:shell_error != 0 + throw 'Skipped: gnome entry missing in the terminfo db' + endif new let save_mouse = &mouse diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3742, +/**/ 3741, /**/ 3740,