From a45551a53557dba98973fdb3ff737dea2fffcda3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 9 Jun 2020 15:57:37 +0200 Subject: patch 8.2.0936: some terminals misinterpret the code for getting cursor style Problem: Some terminals misinterpret the code for getting cursor style. Solution: Send a sequence to the terminal and check the result. (IWAMOTO Kouichi, closes #2126) Merged with current code. --- src/testdir/test_startup_utf8.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/testdir/test_startup_utf8.vim') diff --git a/src/testdir/test_startup_utf8.vim b/src/testdir/test_startup_utf8.vim index ffbc7935a1..1684d80c80 100644 --- a/src/testdir/test_startup_utf8.vim +++ b/src/testdir/test_startup_utf8.vim @@ -1,5 +1,6 @@ " Tests for startup using utf-8. +source check.vim source shared.vim source screendump.vim @@ -71,7 +72,7 @@ func Test_detect_ambiwidth() \ 'call test_option_not_set("ambiwidth")', \ 'redraw', \ ], 'Xscript') - let buf = RunVimInTerminal('-S Xscript', {}) + let buf = RunVimInTerminal('-S Xscript', #{keep_t_u7: 1}) call TermWait(buf) call term_sendkeys(buf, "S\=&ambiwidth\\") call WaitForAssert({-> assert_match('single', term_getline(buf, 1))}) -- cgit v1.2.3