diff options
author | Adrien Fabre <me@statox.fr> | 2019-08-09 10:37:08 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-08-09 10:37:08 +0200 |
commit | 47b7b471fa0f33550f886dc93976ded97f602292 (patch) | |
tree | 6d48be5a36dd2fe2c3ef4255b739ee890200d165 | |
parent | a48896c6e7599245d244d16ad893bba6e3744b73 (diff) | |
download | rneovim-47b7b471fa0f33550f886dc93976ded97f602292.tar.gz rneovim-47b7b471fa0f33550f886dc93976ded97f602292.tar.bz2 rneovim-47b7b471fa0f33550f886dc93976ded97f602292.zip |
:terminal : update buffer when switching tabpage #10700
fix #10696
-rw-r--r-- | src/nvim/terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index d8d529d0f6..3b0f42aacd 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -1306,7 +1306,7 @@ static void refresh_screen(Terminal *term, buf_T *buf) static void adjust_topline(Terminal *term, buf_T *buf, long added) { - FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { + FOR_ALL_TAB_WINDOWS(tp, wp) { if (wp->w_buffer == buf) { linenr_T ml_end = buf->b_ml.ml_line_count; bool following = ml_end == wp->w_cursor.lnum + added; // cursor at end? |