summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_startup_utf8.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-09 15:57:37 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-09 15:57:37 +0200
commita45551a53557dba98973fdb3ff737dea2fffcda3 (patch)
treea34164c3e0a464ef9efd194068149e054a2045cf /src/testdir/test_startup_utf8.vim
parent077a1e670ad69ef4cefc22103ca6635bd269e764 (diff)
patch 8.2.0936: some terminals misinterpret the code for getting cursor stylev8.2.0936
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.
Diffstat (limited to 'src/testdir/test_startup_utf8.vim')
-rw-r--r--src/testdir/test_startup_utf8.vim3
1 files changed, 2 insertions, 1 deletions
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\<C-R>=&ambiwidth\<CR>\<Esc>")
call WaitForAssert({-> assert_match('single', term_getline(buf, 1))})