Skip to content

Commit

Permalink
patch 8.2.3742: dec mouse test fails without gnome terminfo entry
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
dpelle authored and brammool committed Dec 5, 2021
1 parent e031fe9 commit f589fd3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/testdir/test_autochdir.vim
Expand Up @@ -43,12 +43,12 @@ func Test_set_filename_other_window()
finally
set noacd
call chdir(cwd)
call delete('Xa', 'rf')
call delete('Xb', 'rf')
call delete('Xc', 'rf')
bwipe! aaa.txt
bwipe! bbb.txt
bwipe! ccc.txt
call delete('Xa', 'rf')
call delete('Xb', 'rf')
call delete('Xc', 'rf')
endtry
endfunc

Expand Down
4 changes: 4 additions & 0 deletions src/testdir/test_termcodes.vim
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -753,6 +753,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3742,
/**/
3741,
/**/
Expand Down

0 comments on commit f589fd3

Please sign in to comment.