aboutsummaryrefslogtreecommitdiff
path: root/src/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim')
-rw-r--r--src/nvim/options.lua3
-rw-r--r--src/nvim/terminal.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index ef7cc2fb89..3612a80fb8 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -6627,6 +6627,9 @@ return {
top are deleted if new lines exceed this limit.
Minimum is 1, maximum is 100000.
Only in |terminal| buffers.
+
+ Note: Lines that are not visible and kept in scrollback are not
+ reflown when the terminal buffer is resized horizontally.
]=],
full_name = 'scrollback',
redraw = { 'current_buffer' },
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index abc9b3534b..54a0de9c22 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -319,8 +319,7 @@ void terminal_open(Terminal **termpp, buf_T *buf, TerminalOptions opts)
// Set up screen
term->vts = vterm_obtain_screen(term->vt);
vterm_screen_enable_altscreen(term->vts, true);
- // TODO(clason): reenable when https://github.com/neovim/neovim/issues/23762 is fixed
- // vterm_screen_enable_reflow(term->vts, true);
+ vterm_screen_enable_reflow(term->vts, true);
// delete empty lines at the end of the buffer
vterm_screen_set_callbacks(term->vts, &vterm_screen_callbacks, term);
vterm_screen_set_unrecognised_fallbacks(term->vts, &vterm_fallbacks, term);