]> granicus.if.org Git - vim/commitdiff
patch 8.2.4210: window title test fails in some configurations v8.2.4210
authorBram Moolenaar <Bram@vim.org>
Mon, 24 Jan 2022 22:02:15 +0000 (22:02 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 24 Jan 2022 22:02:15 +0000 (22:02 +0000)
Problem:    Window title test fails in some configurations.
Solution:   Only run the test if the title can be obtained.

src/testdir/test_functions.vim
src/version.c

index 3f197ca3d3e89000e77ad1002cc6bbec1670c0f6..39110bbf6638056f868b46cd0356c51babc83c00 100644 (file)
@@ -1632,6 +1632,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
index 4c263aee42fe01c07ba62c3e04b8a90747702eb6..5be0473898078aa4ff37da272728783881c40e78 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4210,
 /**/
     4209,
 /**/