mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 03:46:31 +00:00
feat(term): enable reflow by default (#21124)
libvterm v0.3 supports reflow of terminal buffer when Nvim is resized Since v0.3 is now a required dependency, enable it by default to find (and fix) possible issues. 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:
@@ -220,6 +220,7 @@ Terminal *terminal_open(buf_T *buf, TerminalOptions opts)
|
||||
// Set up screen
|
||||
rv->vts = vterm_obtain_screen(rv->vt);
|
||||
vterm_screen_enable_altscreen(rv->vts, true);
|
||||
vterm_screen_enable_reflow(rv->vts, true);
|
||||
// delete empty lines at the end of the buffer
|
||||
vterm_screen_set_callbacks(rv->vts, &vterm_screen_callbacks, rv);
|
||||
vterm_screen_set_damage_merge(rv->vts, VTERM_DAMAGE_SCROLL);
|
||||
|
Reference in New Issue
Block a user