aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/options.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-05-24 10:04:49 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-08-10 10:26:07 +0200
commit8df6736ca14d09f87cf0a8486758ac5708819434 (patch)
tree29434767d09bcff3c2e519ad417177d81f7f977f /runtime/lua/vim/_meta/options.lua
parentfa79a8ad6deefeea81c1959d69aa4c8b2d993f99 (diff)
downloadrneovim-8df6736ca14d09f87cf0a8486758ac5708819434.tar.gz
rneovim-8df6736ca14d09f87cf0a8486758ac5708819434.tar.bz2
rneovim-8df6736ca14d09f87cf0a8486758ac5708819434.zip
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.
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r--runtime/lua/vim/_meta/options.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index 10c888548c..b4ac478b61 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -5253,6 +5253,9 @@ vim.wo.scr = vim.wo.scroll
--- 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.
+---
--- @type integer
vim.o.scrollback = -1
vim.o.scbk = vim.o.scrollback