aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-09-09 13:57:27 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-09-09 14:07:36 +0200
commit06f8ad5b2af59f61f053387d1347f6b1eada850e (patch)
tree05fc1d5a723f9ede453b2ebe72777aa71484c190 /src/nvim/terminal.c
parent618cfe03fce818ae546292e34d808d0d5e8ae631 (diff)
downloadrneovim-06f8ad5b2af59f61f053387d1347f6b1eada850e.tar.gz
rneovim-06f8ad5b2af59f61f053387d1347f6b1eada850e.tar.bz2
rneovim-06f8ad5b2af59f61f053387d1347f6b1eada850e.zip
terminal.c: need maketitle() in terminal-mode
normal_redraw() usually takes care of this, but that doesn't happen during terminal-mode. regression by c484323dc67f steps to reproduce: nvim -u NORC --cmd 'execute("set titlestring=" . $NVIM_LISTEN_ADDRESS) | set title | startinsert | !sleep 1' term://sh closes #7248
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r--src/nvim/terminal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index d4517af3ff..4a9acf2559 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -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) {