From c06f0970b0807360c4b9d24abd10a264b5ea892f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 12 Sep 2025 07:08:02 +0800 Subject: vim-patch:a0f37db: runtime(doc): use a single pattern in :h 'incsearch' example (#35721) related: https://github.com/vim/vim/pull/18262#issuecomment-3277008408 closes: vim/vim#18270 https://github.com/vim/vim/commit/a0f37dbbf413537815656fb0752a8eb926acb05c --- runtime/lua/vim/_meta/options.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim/_meta/options.lua') diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 2b051e4223..1eb03dad36 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -3564,8 +3564,8 @@ vim.bo.inex = vim.bo.includeexpr --- ```vim --- augroup vimrc-incsearch-highlight --- autocmd! ---- autocmd CmdlineEnter /,\? :set hlsearch ---- autocmd CmdlineLeave /,\? :set nohlsearch +--- autocmd CmdlineEnter [\/\?] :set hlsearch +--- autocmd CmdlineLeave [\/\?] :set nohlsearch --- augroup END --- ``` --- -- cgit