comparison src/terminal.c @ 27257:68c33419fdc6 v8.2.4157

patch 8.2.4157: terminal test fails because Windows sets the title Commit: https://github.com/vim/vim/commit/ae1bd87fe84bfb31379bc5da351bca56a3d3b571 Author: ichizok <gclient.gaap@gmail.com> Date: Thu Jan 20 14:57:29 2022 +0000 patch 8.2.4157: terminal test fails because Windows sets the title Problem: Terminal test fails because Windows sets the title. Solution: Add the "vterm_title" testing override and use it in the test. (Ozaki Kiichi, closes #9556)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Jan 2022 16:00:07 +0100
parents a9eeb18e749c
children dd804c17e7e3
comparison
equal deleted inserted replaced
27256:fc12cb6e29b7 27257:68c33419fdc6
3086 char_u *strval = NULL; 3086 char_u *strval = NULL;
3087 3087
3088 switch (prop) 3088 switch (prop)
3089 { 3089 {
3090 case VTERM_PROP_TITLE: 3090 case VTERM_PROP_TITLE:
3091 if (disable_vterm_title_for_testing)
3092 break;
3091 strval = vim_strnsave((char_u *)value->string.str, 3093 strval = vim_strnsave((char_u *)value->string.str,
3092 value->string.len); 3094 value->string.len);
3093 if (strval == NULL) 3095 if (strval == NULL)
3094 break; 3096 break;
3095 vim_free(term->tl_title); 3097 vim_free(term->tl_title);