vim-patch:8.2.4210: window title test fails in some configurations

Problem:    Window title test fails in some configurations.
Solution:   Only run the test if the title can be obtained.

a6c09a7c20

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq 2023-08-21 16:16:39 +08:00
parent 893437512c
commit 7fab06cb0c

View File

@ -2011,6 +2011,9 @@ endfunc
func Test_setbufvar_keep_window_title()
CheckRunVimInTerminal
if !has('title') || empty(&t_ts)
throw "Skipped: can't get/set title"
endif
let lines =<< trim END
edit Xa.txt