Skip to content

Commit 951b595

Browse files
committed
search:NONE
1 parent 01c565a commit 951b595

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

autoload/easycomplete/popup.vim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ function! s:NVimShow(opt, windowtype, float_type)
633633
noa let winid = nvim_open_win(s:buf[a:windowtype], v:false, opt)
634634
let g:easycomplete_popup_win[a:windowtype] = winid
635635
if a:windowtype == "popup" || (a:windowtype == "float" && a:float_type == "signature")
636-
call setwinvar(winid, '&winhl', 'Normal:Pmenu,NormalNC:Pmenu,Search:Normal,Error:Pmenu')
636+
call setwinvar(winid, '&winhl', 'Normal:Pmenu,NormalNC:Pmenu,Search:Normal,Error:Pmenu,Search:NONE')
637637
call setwinvar(winid, '&spell', 0)
638638
elseif a:windowtype == "float" && a:float_type == "lint"
639639
let bgcolor = easycomplete#ui#GetBgColor("CursorLine")
@@ -642,11 +642,10 @@ function! s:NVimShow(opt, windowtype, float_type)
642642
let fgcolor = easycomplete#ui#GetFgColor("Comment")
643643
endif
644644
call easycomplete#ui#hi("EasyLintStyle", fgcolor, bgcolor, "")
645-
call setwinvar(winid, '&winhl', 'Normal:Pmenu,NormalNC:EasyLintStyle')
645+
call setwinvar(winid, '&winhl', 'Normal:Pmenu,NormalNC:EasyLintStyle,Search:NONE')
646646
else
647-
call setwinvar(winid, '&winhl', 'Normal:Pmenu,NormalNC:Pmenu')
647+
call setwinvar(winid, '&winhl', 'Normal:Pmenu,NormalNC:Pmenu,Search:NONE')
648648
endif
649-
" call setwinvar(winid, '&hlsearch', 0)
650649
if has('nvim-0.5.0')
651650
call setwinvar(g:easycomplete_popup_win[a:windowtype], '&scrolloff', 0)
652651
call setwinvar(g:easycomplete_popup_win[a:windowtype], '&spell', 0)

autoload/easycomplete/pum.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ function! s:OpenFloatWindow(buf, opts, hl)
662662
call setwinvar(winid, '&number', 0)
663663
call setwinvar(winid, '&wrap', 0)
664664
call setwinvar(winid, '&signcolumn', "no")
665-
call setwinvar(winid, '&hlsearch', 0)
665+
" call setwinvar(winid, '&hlsearch', 0)
666666
call setwinvar(winid, '&list', 0)
667667
call setwinvar(winid, '&conceallevel', 3)
668668
if exists("&pumblend")
@@ -686,7 +686,7 @@ function! s:RenderScrollBar()
686686
let scrollbar_opts = deepcopy(s:default_scroll_bar_pot)
687687
call extend(scrollbar_opts, pos)
688688
if empty(s:scrollbar_window)
689-
let hl = "Normal:PmenuSbar,NormalNC:PmenuSbar,CursorLine:PmenuSbar"
689+
let hl = "Normal:PmenuSbar,NormalNC:PmenuSbar,CursorLine:PmenuSbar:Search:NONE"
690690
let s:scrollbar_window = s:OpenFloatWindow(s:scrollbar_buffer, scrollbar_opts, hl)
691691
else
692692
" update scroll window

0 commit comments

Comments
 (0)