aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/options.lua
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2024-03-28 10:20:45 +0100
committerLuuk van Baal <luukvbaal@gmail.com>2024-03-28 11:39:34 +0100
commit2f638c0ac6275bebacd12671481642fa43d7ba10 (patch)
tree670cc5d23f380742a3ffb979097ab2ca8d1b3b36 /runtime/lua/vim/_meta/options.lua
parent4147302f4be3fe8a5dae3f20a336477cb5f507a4 (diff)
downloadrneovim-2f638c0ac6275bebacd12671481642fa43d7ba10.tar.gz
rneovim-2f638c0ac6275bebacd12671481642fa43d7ba10.tar.bz2
rneovim-2f638c0ac6275bebacd12671481642fa43d7ba10.zip
vim-patch:9.1.0215: Half-page scrolling does not support smooth-scrolling
Problem: Page-wise scrolling with Ctrl-D/Ctrl-U implements it's own logic to change the topline and cursor. More logic than necessary for scrolling with Ctrl-F/Ctrl-B was removed in patch 9.1.0211. Solution: Re-use the logic from Ctrl-E/Ctrl-Y/Ctrl-F/Ctrl-B while staying backward compatible as much as possible. Restore some of the logic that determined how many lines will be scrolled (Luuk van Baal) https://github.com/vim/vim/commit/5a2e3ec9ac72b6e644fea4ebba7e632498296e2f
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r--runtime/lua/vim/_meta/options.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index 2d78013208..adc42f9659 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -6076,7 +6076,7 @@ vim.go.sta = vim.go.smarttab
--- You may also want to add "lastline" to the 'display' option to show as
--- much of the last line as possible.
--- NOTE: only partly implemented, currently works with CTRL-E, CTRL-Y,
---- CTRL-B, CTRL-F and scrolling with the mouse.
+--- CTRL-D, CTRL-U, CTRL-F, CTRL-B and scrolling with the mouse.
---
--- @type boolean
vim.o.smoothscroll = false
@@ -7861,8 +7861,8 @@ vim.wo.winbl = vim.wo.winblend
--- will scroll 'window' minus two lines, with a minimum of one.
--- When 'window' is equal to 'lines' minus one CTRL-F and CTRL-B scroll
--- in a much smarter way, taking care of wrapping lines.
---- When resizing the Vim window, the value is smaller than 1 or more than
---- or equal to 'lines' it will be set to 'lines' minus 1.
+--- When resizing the Vim window, and the value is smaller than 1 or more
+--- than or equal to 'lines' it will be set to 'lines' minus 1.
--- Note: Do not confuse this with the height of the Vim window, use
--- 'lines' for that.
---