From f53d9ac90b7a5a0eefb22398a8ce4e249a3fc732 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 23 May 2026 07:47:49 +0800 Subject: [PATCH] vim-patch:c7645fc: runtime(doc): add a few references to mouse behaviour (#39959) fixes: vim/vim#20281 https://github.com/vim/vim/commit/c7645fcda50f95cc098545b70ce937a986b997d1 Co-authored-by: Christian Brabandt --- runtime/doc/options.txt | 5 ++++- runtime/doc/visual.txt | 3 +++ runtime/lua/vim/_meta/options.gen.lua | 5 ++++- src/nvim/options.lua | 5 ++++- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index b066b36588..f52fb73768 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4596,7 +4596,10 @@ A jump table for the options with a short description can be found at |Q_op|. be acted upon, i.e. no cursor move. This implies of course, that right clicking outside a selection will end Visual mode. - Overview of what button does what for each model: + + For a detailed description of 'mousemodel' behaviour see + |mouse-mode-table|. Overview of what button does what for each model: + mouse extend popup(_setpos) ~ left click place cursor place cursor left drag start selection start selection diff --git a/runtime/doc/visual.txt b/runtime/doc/visual.txt index e44e8f634e..c23bf3f732 100644 --- a/runtime/doc/visual.txt +++ b/runtime/doc/visual.txt @@ -139,6 +139,9 @@ gN Like |gn| but searches backward, like with `N`. environment variable or the -display argument). Only when 'mouse' option contains 'n' or 'a'. + Starts or extends the Visual area blockwise, see + ||. + If Visual mode is not active and the "v", "V" or CTRL-V is preceded with a count, the size of the previously highlighted area is used for a start. You can then move the end of the highlighted area and give an operator. The type diff --git a/runtime/lua/vim/_meta/options.gen.lua b/runtime/lua/vim/_meta/options.gen.lua index 9bba00501d..48ad6cbaf5 100644 --- a/runtime/lua/vim/_meta/options.gen.lua +++ b/runtime/lua/vim/_meta/options.gen.lua @@ -4667,7 +4667,10 @@ vim.go.mh = vim.go.mousehide --- be acted upon, i.e. no cursor move. This implies of --- course, that right clicking outside a selection will --- end Visual mode. ---- Overview of what button does what for each model: +--- +--- For a detailed description of 'mousemodel' behaviour see +--- `mouse-mode-table`. Overview of what button does what for each model: +--- --- mouse extend popup(_setpos) ~ --- left click place cursor place cursor --- left drag start selection start selection diff --git a/src/nvim/options.lua b/src/nvim/options.lua index c9c0e99f91..c1072183f2 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -6062,7 +6062,10 @@ local options = { be acted upon, i.e. no cursor move. This implies of course, that right clicking outside a selection will end Visual mode. - Overview of what button does what for each model: + + For a detailed description of 'mousemodel' behaviour see + |mouse-mode-table|. Overview of what button does what for each model: + mouse extend popup(_setpos) ~ left click place cursor place cursor left drag start selection start selection