Skip to content

Commit a057000

Browse files
danielrainerDaniel Rainer
and
Daniel Rainer
authored
Use CocFloatBorder by default (#5309)
If no other value is set for `borderhighlight`, use the default `CocFloatBorder`. Co-authored-by: Daniel Rainer <daniel.rainer@localhost>
1 parent a77e3a4 commit a057000

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

autoload/coc/float.vim

+1-4
Original file line numberDiff line numberDiff line change
@@ -1455,10 +1455,7 @@ endfunction
14551455

14561456
function! s:get_borderhighlight(config) abort
14571457
let hlgroup = get(a:config, 'highlight', 'CocFloating')
1458-
let borderhighlight = get(a:config, 'borderhighlight', v:null)
1459-
if empty(borderhighlight)
1460-
return hlgroup
1461-
endif
1458+
let borderhighlight = get(a:config, 'borderhighlight', 'CocFloatBorder')
14621459
let highlight = type(borderhighlight) == 3 ? borderhighlight[0] : borderhighlight
14631460
return coc#highlight#compose_hlgroup(highlight, hlgroup)
14641461
endfunction

0 commit comments

Comments
 (0)