vim-patch:5277cfaf8afe (#25397)

runtime(doc): mention mouse scrolling in scrollbind-quickadj (vim/vim#13190)

5277cfaf8a
This commit is contained in:
zeertzjq 2023-09-28 05:22:09 +08:00 committed by GitHub
parent 1783023da7
commit 86b7d8a9f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 16 deletions

View File

@ -4909,9 +4909,9 @@ A jump table for the options with a short description can be found at |Q_op|.
*'scrollbind'* *'scb'* *'noscrollbind'* *'noscb'* *'scrollbind'* *'scb'* *'noscrollbind'* *'noscb'*
'scrollbind' 'scb' boolean (default off) 'scrollbind' 'scb' boolean (default off)
local to window local to window
See also |scroll-binding|. When this option is set, the current See also |scroll-binding|. When this option is set, scrolling the
window scrolls as other scrollbind windows (windows that also have current window also scrolls other scrollbind windows (windows that
this option set) scroll. This option is useful for viewing the also have this option set). This option is useful for viewing the
differences between two versions of a file, see 'diff'. differences between two versions of a file, see 'diff'.
See |'scrollopt'| for options that determine how this option should be See |'scrollopt'| for options that determine how this option should be
interpreted. interpreted.

View File

@ -186,16 +186,16 @@ windows can be given this behavior by setting the (window-specific)
other 'scrollbind' windows are scrolled the same amount, if possible. The other 'scrollbind' windows are scrolled the same amount, if possible. The
behavior of 'scrollbind' can be modified by the 'scrollopt' option. behavior of 'scrollbind' can be modified by the 'scrollopt' option.
When using the scrollbars, the binding only happens when scrolling the window When using the scrollbars or the mouse wheel, the binding only happens when
with focus (where the cursor is). You can use this to avoid scroll-binding scrolling the window with focus (where the cursor is). You can use this to
for a moment without resetting options. avoid scroll-binding for a moment without resetting options.
When a window also has the 'diff' option set, the scroll-binding uses the When a window also has the 'diff' option set, the scroll-binding uses the
differences between the two buffers to synchronize the position precisely. differences between the two buffers to synchronize the position precisely.
Otherwise the following method is used. Otherwise the following method is used.
*scrollbind-relative* *scrollbind-relative*
Each 'scrollbind' window keeps track of its "relative offset," which can be Each 'scrollbind' window keeps track of its "relative offset", which can be
thought of as the difference between the current window's vertical scroll thought of as the difference between the current window's vertical scroll
position and the other window's vertical scroll position. When one of the position and the other window's vertical scroll position. When one of the
'scrollbind' windows is asked to vertically scroll past the beginning or end 'scrollbind' windows is asked to vertically scroll past the beginning or end
@ -219,9 +219,10 @@ option.
*scrollbind-quickadj* *scrollbind-quickadj*
The 'scrollbind' flag is meaningful when using keyboard commands to vertically The 'scrollbind' flag is meaningful when using keyboard commands to vertically
scroll a window, and also meaningful when using the vertical scrollbar of the scroll a window, and is also meaningful when using the vertical scrollbar or
window which has the cursor focus. However, when using the vertical scrollbar the mouse wheel in the window which has the cursor focus. However, when using
of a window which doesn't have the cursor focus, 'scrollbind' is ignored. the vertical scrollbar or the mouse wheel in a window which doesn't have the
cursor focus, 'scrollbind' is ignored.
This allows quick adjustment of the relative offset of 'scrollbind' windows. This allows quick adjustment of the relative offset of 'scrollbind' windows.
============================================================================== ==============================================================================

View File

@ -5113,9 +5113,9 @@ vim.o.scbk = vim.o.scrollback
vim.bo.scrollback = vim.o.scrollback vim.bo.scrollback = vim.o.scrollback
vim.bo.scbk = vim.bo.scrollback vim.bo.scbk = vim.bo.scrollback
--- See also `scroll-binding`. When this option is set, the current --- See also `scroll-binding`. When this option is set, scrolling the
--- window scrolls as other scrollbind windows (windows that also have --- current window also scrolls other scrollbind windows (windows that
--- this option set) scroll. This option is useful for viewing the --- also have this option set). This option is useful for viewing the
--- differences between two versions of a file, see 'diff'. --- differences between two versions of a file, see 'diff'.
--- See `'scrollopt'` for options that determine how this option should be --- See `'scrollopt'` for options that determine how this option should be
--- interpreted. --- interpreted.

View File

@ -6546,9 +6546,9 @@ return {
cb = 'did_set_scrollbind', cb = 'did_set_scrollbind',
defaults = { if_true = false }, defaults = { if_true = false },
desc = [=[ desc = [=[
See also |scroll-binding|. When this option is set, the current See also |scroll-binding|. When this option is set, scrolling the
window scrolls as other scrollbind windows (windows that also have current window also scrolls other scrollbind windows (windows that
this option set) scroll. This option is useful for viewing the also have this option set). This option is useful for viewing the
differences between two versions of a file, see 'diff'. differences between two versions of a file, see 'diff'.
See |'scrollopt'| for options that determine how this option should be See |'scrollopt'| for options that determine how this option should be
interpreted. interpreted.