To: vim_dev@googlegroups.com Subject: Patch 8.1.2137 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.2137 Problem: Parsing the termresponse is not tested. Solution: Add a first test. (related to #5042) Files: src/testdir/test_termcodes.vim *** ../vim-8.1.2136/src/testdir/test_termcodes.vim 2019-10-06 12:02:10.756520967 +0200 --- src/testdir/test_termcodes.vim 2019-10-12 13:20:32.922068275 +0200 *************** *** 779,787 **** endfunc " This only checks if the sequence is recognized. ! " This must be last, because it has side effects to xterm properties. ! " TODO: check that the values were parsed properly ! func Test_xx_term_style_response() " Termresponse is only parsed when t_RV is not empty. set t_RV=x --- 779,787 ---- endfunc " This only checks if the sequence is recognized. ! " This must be after other tests, because it has side effects to xterm ! " properties. ! func Test_xx01_term_style_response() " Termresponse is only parsed when t_RV is not empty. set t_RV=x *************** *** 796,801 **** --- 796,819 ---- set t_RV= endfunc + + " This checks the libvterm version response. + " This must be after other tests, because it has side effects to xterm + " properties. + " TODO: check other terminals response + func Test_xx02_libvterm_response() + " Termresponse is only parsed when t_RV is not empty. + set t_RV=x + set ttymouse=xterm + call test_option_not_set('ttymouse') + + let seq = "\[>0;100;0c" + call feedkeys(seq, 'Lx!') + call assert_equal(seq, v:termresponse) + call assert_equal('sgr', &ttymouse) + + set t_RV= + endfunc func Test_get_termcode() try *** ../vim-8.1.2136/src/version.c 2019-10-11 21:19:10.397931898 +0200 --- src/version.c 2019-10-12 13:25:25.284721071 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 2137, /**/ -- BRIDGEKEEPER: What is the air-speed velocity of an unladen swallow? ARTHUR: What do you mean? An African or European swallow? BRIDGEKEEPER: Er ... I don't know that ... Aaaaarrrrrrggghhh! BRIDGEKEEPER is cast into the gorge. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///