terminal.c: need maketitle() in terminal-mode

normal_redraw() usually takes care of this, but that doesn't happen
during terminal-mode.

regression by c484323dc6
steps to reproduce:
    nvim -u NORC --cmd 'execute("set titlestring=" . $NVIM_LISTEN_ADDRESS) | set title | startinsert | !sleep 1' term://sh

closes #7248
This commit is contained in:
Justin M. Keyes 2017-09-09 13:57:27 +02:00
parent 618cfe03fc
commit 06f8ad5b2a
2 changed files with 5 additions and 1 deletions

View File

@ -5847,7 +5847,7 @@ static void screen_start_highlight(int attr)
ui_start_highlight(attr);
}
void screen_stop_highlight(void)
static void screen_stop_highlight(void)
{
ui_stop_highlight();
screen_attr = 0;

View File

@ -1259,6 +1259,10 @@ static void redraw(bool restore_cursor)
update_screen(0);
}
if (need_maketitle) { // Update title in terminal-mode. #7248
maketitle();
}
if (restore_cursor) {
ui_cursor_goto(save_row, save_col);
} else if (term) {