diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-17 21:55:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-17 21:55:24 +0200 |
commit | 3cea8a9a51c7b26a01a75dc29d9d8a621fc70b57 (patch) | |
tree | c0e838e2295808258b37315051c538aff8c6d638 /src/testdir/test_termcodes.vim | |
parent | b1ba9abcb385b0a5355788a7eefef78ec68d2f65 (diff) | |
download | vim-git-3cea8a9a51c7b26a01a75dc29d9d8a621fc70b57.tar.gz |
patch 8.1.2169: terminal flags are never resetv8.1.2169
Problem: Terminal flags are never reset.
Solution: Reset the flags when setting 'term'.
Diffstat (limited to 'src/testdir/test_termcodes.vim')
-rw-r--r-- | src/testdir/test_termcodes.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim index 0a4170e38..ae20280fe 100644 --- a/src/testdir/test_termcodes.vim +++ b/src/testdir/test_termcodes.vim @@ -906,7 +906,18 @@ func Test_xx03_xterm_response() " Termresponse is only parsed when t_RV is not empty. set t_RV=x + " Do Terminal.app first to check that is_mac_terminal is reset. + set ttymouse=xterm + call test_option_not_set('ttymouse') + let seq = "\<Esc>[>1;95;0c" + call feedkeys(seq, 'Lx!') + call assert_equal(seq, v:termresponse) + call assert_equal('sgr', &ttymouse) + " xterm < 95: "xterm" (actually unmodified) + set t_RV= + set term=xterm + set t_RV=x set ttymouse=xterm call test_option_not_set('ttymouse') let seq = "\<Esc>[>0;94;0c" |