diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 31c264182f..4d53f87670 100644 --- 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 . You still need to finish the search command with to move the diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index f99c3113b9..bd2038bc72 100644 --- 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 . You --- still need to finish the search command with to move the diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 942bb4aeff..8d4c226238 100644 --- 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 . You still need to finish the search command with to move the