aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-16 02:52:57 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-23 00:03:48 -0400
commit3bc8639c1a92dac8a1bc9c71c74129bd1eba8269 (patch)
treea34b37264825d1f42cb8ca46ce03cd834e3ec139
parent6dacfe7217096df8c389a50754a3f0cbc615eefb (diff)
downloadrneovim-3bc8639c1a92dac8a1bc9c71c74129bd1eba8269.tar.gz
rneovim-3bc8639c1a92dac8a1bc9c71c74129bd1eba8269.tar.bz2
rneovim-3bc8639c1a92dac8a1bc9c71c74129bd1eba8269.zip
vim-patch:8.0.0797: finished job in terminal window is not handled
Problem: Finished job in terminal window is not handled. Solution: Add the scrollback buffer. Use it to fill the buffer when the job has ended. https://github.com/vim/vim/commit/d85f271bf8516dbd90be4d18f905f0abbfcd6db6
-rw-r--r--src/nvim/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 6d4a5dee3a..cd472ea1e4 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -4831,13 +4831,13 @@ static void win_redr_status(win_T *wp)
p = NameBuff;
len = (int)STRLEN(p);
- if (wp->w_buffer->b_help
+ if (bt_help(wp->w_buffer)
|| wp->w_p_pvw
|| bufIsChanged(wp->w_buffer)
|| wp->w_buffer->b_p_ro) {
*(p + len++) = ' ';
}
- if (wp->w_buffer->b_help) {
+ if (bt_help(wp->w_buffer)) {
STRCPY(p + len, _("[Help]"));
len += (int)STRLEN(p + len);
}