aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/scroll.txt
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-28 05:22:09 +0800
committerGitHub <noreply@github.com>2023-09-28 05:22:09 +0800
commit86b7d8a9f54d572e6866d6a24476d2369a288f79 (patch)
tree53362278dcf3b3d6b19c1261d96b35744a15a538 /runtime/doc/scroll.txt
parent1783023da7391bb4f66bd603af11b2192dddff3a (diff)
downloadrneovim-86b7d8a9f54d572e6866d6a24476d2369a288f79.tar.gz
rneovim-86b7d8a9f54d572e6866d6a24476d2369a288f79.tar.bz2
rneovim-86b7d8a9f54d572e6866d6a24476d2369a288f79.zip
vim-patch:5277cfaf8afe (#25397)
runtime(doc): mention mouse scrolling in scrollbind-quickadj (vim/vim#13190) https://github.com/vim/vim/commit/5277cfaf8afe847b7d4dcde6057fbecb001ab64e
Diffstat (limited to 'runtime/doc/scroll.txt')
-rw-r--r--runtime/doc/scroll.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/runtime/doc/scroll.txt b/runtime/doc/scroll.txt
index 92546799b4..29d6177213 100644
--- a/runtime/doc/scroll.txt
+++ b/runtime/doc/scroll.txt
@@ -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
behavior of 'scrollbind' can be modified by the 'scrollopt' option.
-When using the scrollbars, the binding only happens when scrolling the window
-with focus (where the cursor is). You can use this to avoid scroll-binding
-for a moment without resetting options.
+When using the scrollbars or the mouse wheel, the binding only happens when
+scrolling the window with focus (where the cursor is). You can use this to
+avoid scroll-binding for a moment without resetting options.
When a window also has the 'diff' option set, the scroll-binding uses the
differences between the two buffers to synchronize the position precisely.
Otherwise the following method is used.
*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
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
@@ -219,9 +219,10 @@ option.
*scrollbind-quickadj*
The 'scrollbind' flag is meaningful when using keyboard commands to vertically
-scroll a window, and also meaningful when using the vertical scrollbar of the
-window which has the cursor focus. However, when using the vertical scrollbar
-of a window which doesn't have the cursor focus, 'scrollbind' is ignored.
+scroll a window, and is also meaningful when using the vertical scrollbar or
+the mouse wheel in the window which has the cursor focus. However, when using
+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.
==============================================================================