mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
feat(term): enable reflow by default (#21124)
Problem: Contents of terminal buffer are not reflown when Nvim is resized. Solution: Enable reflow in libvterm by default. Now that libvterm is vendored, also fix "TUI rapid resize" test failures there. Note: Neovim's scrollback buffer does not support reflow (yet), so lines vanishing into the buffer due to a too small window will be restored without reflow.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user