commit d8326ed15d41d545a8955cea7881f0040ea09466
parent 046c9b678c672a59b8af259102aa51a92d2ec009
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 27 Oct 2025 08:20:28 +0800
vim-patch:3fc00c0: runtime(doc): mention that 'incsearch' ignores addresses and offset
closes: vim/vim#18639
https://github.com/vim/vim/commit/3fc00c05fb464d3e806df53bdc1743faa337ddca
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat:
3 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
@@ -3669,9 +3669,10 @@ A jump table for the options with a short description can be found at |Q_op|.
'incsearch' 'is' boolean (default on)
global
While typing a search command, show where the pattern, as it was typed
- so far, matches. The matched string is highlighted. If the pattern
- is invalid or not found, nothing is shown. The screen will be updated
- often, this is only useful on fast terminals.
+ so far, matches (ignoring {offset} and {address} modifiers). The
+ matched string is highlighted. If the pattern is invalid or not
+ found, nothing is shown. The screen will be updated often, this is
+ only useful on fast terminals.
Note that the match will be shown, but the cursor will return to its
original position when no match is found and when pressing <Esc>. You
still need to finish the search command with <Enter> to move the
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
@@ -3565,9 +3565,10 @@ vim.bo.includeexpr = vim.o.includeexpr
vim.bo.inex = vim.bo.includeexpr
--- While typing a search command, show where the pattern, as it was typed
---- so far, matches. The matched string is highlighted. If the pattern
---- is invalid or not found, nothing is shown. The screen will be updated
---- often, this is only useful on fast terminals.
+--- so far, matches (ignoring {offset} and {address} modifiers). The
+--- matched string is highlighted. If the pattern is invalid or not
+--- found, nothing is shown. The screen will be updated often, this is
+--- only useful on fast terminals.
--- Note that the match will be shown, but the cursor will return to its
--- original position when no match is found and when pressing <Esc>. You
--- still need to finish the search command with <Enter> to move the
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
@@ -4701,9 +4701,10 @@ local options = {
defaults = true,
desc = [=[
While typing a search command, show where the pattern, as it was typed
- so far, matches. The matched string is highlighted. If the pattern
- is invalid or not found, nothing is shown. The screen will be updated
- often, this is only useful on fast terminals.
+ so far, matches (ignoring {offset} and {address} modifiers). The
+ matched string is highlighted. If the pattern is invalid or not
+ found, nothing is shown. The screen will be updated often, this is
+ only useful on fast terminals.
Note that the match will be shown, but the cursor will return to its
original position when no match is found and when pressing <Esc>. You
still need to finish the search command with <Enter> to move the