aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/nvim/screen.c2
-rw-r--r--src/nvim/terminal.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 95973354bc..921ef06c7b 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -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;
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) {