runtime(nohlsearch): add missing loaded_hlsearch guard Commit: https://github.com/vim/vim/commit/5753d99ff667d0feeff6b582bb7df9aaedd9a2cb Author: Maxim Kim <haba...@gmail.com> Date: Wed Jul 31 22:07:43 2024 +0200
runtime(nohlsearch): add missing loaded_hlsearch guard related: https://github.com/vim/vim/issues/15039 closes: https://github.com/vim/vim/issues/15402 Signed-off-by: Maxim Kim <haba...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim b/runtime/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim index 8d9930742..a2d766e41 100644 --- a/runtime/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim +++ b/runtime/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim @@ -1,10 +1,16 @@ " nohlsearch.vim: Auto turn off hlsearch -" Last Change: 2024-06-19 +" Last Change: 2024-07-31 " Maintainer: Maxim Kim <haba...@gmail.com> " " turn off hlsearch after: " - doing nothing for 'updatetime' " - getting into insert mode + +if exists('g:loaded_nohlsearch') + finish +endif +let g:loaded_nohlsearch = 1 + augroup nohlsearch au! noremap <Plug>(nohlsearch) <cmd>nohlsearch<cr> -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sZFiw-006Pnl-LP%40256bit.org.