comparison src/terminal.c @ 12094:125994e132c7 v8.0.0927

patch 8.0.0927: if a terminal job sends a blank title "running" is not shown commit https://github.com/vim/vim/commit/274a52fd58bbd88f5fe8b96d87abe3574c8169af Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 13 16:09:31 2017 +0200 patch 8.0.0927: if a terminal job sends a blank title "running" is not shown Problem: If a terminal job sends a blank title "running" is not shown. Solution: When the title is blank make it empty.
author Christian Brabandt <cb@256bit.org>
date Sun, 13 Aug 2017 16:15:04 +0200
parents bf3a61119baf
children 0a61213afdd2
comparison
equal deleted inserted replaced
12093:02d8dba62a63 12094:125994e132c7
1501 1501
1502 switch (prop) 1502 switch (prop)
1503 { 1503 {
1504 case VTERM_PROP_TITLE: 1504 case VTERM_PROP_TITLE:
1505 vim_free(term->tl_title); 1505 vim_free(term->tl_title);
1506 term->tl_title = vim_strsave((char_u *)value->string); 1506 /* a blank title isn't useful, make it empty, so that "running" is
1507 * displayed */
1508 if (*skipwhite((char_u *)value->string) == NUL)
1509 term->tl_title = NULL;
1510 else
1511 term->tl_title = vim_strsave((char_u *)value->string);
1507 vim_free(term->tl_status_text); 1512 vim_free(term->tl_status_text);
1508 term->tl_status_text = NULL; 1513 term->tl_status_text = NULL;
1509 if (term == curbuf->b_term) 1514 if (term == curbuf->b_term)
1510 maketitle(); 1515 maketitle();
1511 break; 1516 break;