Mercurial > vim
comparison src/testdir/test_termcodes.vim @ 18350:b1796f1b28fa v8.1.2169
patch 8.1.2169: terminal flags are never reset
Commit: https://github.com/vim/vim/commit/3cea8a9a51c7b26a01a75dc29d9d8a621fc70b57
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 17 21:55:24 2019 +0200
patch 8.1.2169: terminal flags are never reset
Problem: Terminal flags are never reset.
Solution: Reset the flags when setting 'term'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Oct 2019 22:00:03 +0200 |
parents | 60fce48438e2 |
children | e460e6878406 |
comparison
equal
deleted
inserted
replaced
18349:3d40532727b8 | 18350:b1796f1b28fa |
---|---|
904 " properties. | 904 " properties. |
905 func Test_xx03_xterm_response() | 905 func Test_xx03_xterm_response() |
906 " Termresponse is only parsed when t_RV is not empty. | 906 " Termresponse is only parsed when t_RV is not empty. |
907 set t_RV=x | 907 set t_RV=x |
908 | 908 |
909 " Do Terminal.app first to check that is_mac_terminal is reset. | |
910 set ttymouse=xterm | |
911 call test_option_not_set('ttymouse') | |
912 let seq = "\<Esc>[>1;95;0c" | |
913 call feedkeys(seq, 'Lx!') | |
914 call assert_equal(seq, v:termresponse) | |
915 call assert_equal('sgr', &ttymouse) | |
916 | |
909 " xterm < 95: "xterm" (actually unmodified) | 917 " xterm < 95: "xterm" (actually unmodified) |
918 set t_RV= | |
919 set term=xterm | |
920 set t_RV=x | |
910 set ttymouse=xterm | 921 set ttymouse=xterm |
911 call test_option_not_set('ttymouse') | 922 call test_option_not_set('ttymouse') |
912 let seq = "\<Esc>[>0;94;0c" | 923 let seq = "\<Esc>[>0;94;0c" |
913 call feedkeys(seq, 'Lx!') | 924 call feedkeys(seq, 'Lx!') |
914 call assert_equal(seq, v:termresponse) | 925 call assert_equal(seq, v:termresponse) |