aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-19 07:32:53 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-06-19 08:02:02 +0800
commit14aba679670a6485596c60fa5eb1df92ecae8a1b (patch)
tree5ab2fbbf939d38ee2d6b75e1ff0263d60f129e5d /src/nvim/search.c
parenta2d510e1015d57f28ab20c5d2897527cae15b9c4 (diff)
downloadrneovim-14aba679670a6485596c60fa5eb1df92ecae8a1b.tar.gz
rneovim-14aba679670a6485596c60fa5eb1df92ecae8a1b.tar.bz2
rneovim-14aba679670a6485596c60fa5eb1df92ecae8a1b.zip
vim-patch:8.2.4724: current instance of last search pattern not easily spotted
Problem: Current instance of last search pattern not easily spotted. Solution: Add CurSearch highlighting. (closes vim/vim#10133) https://github.com/vim/vim/commit/a43993897aa372159f682df37562f159994dc85c Some code is superseded by later patches that are already ported. Co-authored-by: LemonBoy <thatlemon@gmail.com>
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index 994a0794b0..4d817b2418 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -4322,9 +4322,3 @@ bool search_was_last_used(void)
{
return last_idx == 0;
}
-
-/// @return true if 'hlsearch' highlight is currently in use.
-bool using_hlsearch(void)
-{
- return spats[last_idx].pat != NULL && p_hls && !no_hlsearch;
-}