@@ -47,7 +47,7 @@ Previewer.base = Object:extend()
4747--- @param opts table
4848--- @return fzf-lua.previewer.Builtin
4949function Previewer .base :new (o , opts )
50- local default = vim . F . if_nil
50+ local default = utils . nonnil
5151 o = o or {}
5252 self .type = " builtin"
5353 self .opts = opts
@@ -885,7 +885,7 @@ function Previewer.buffer_or_file:_set_preview_lines(tmpbuf, entry)
885885 extmarks = entry .extmarks or extmarks
886886 pcall (api .nvim_buf_set_lines , tmpbuf , 0 , - 1 , false , textlines )
887887 if extmarks and # extmarks > 0 then
888- local setmark = vim . F .nil_wrap (api .nvim_buf_set_extmark )
888+ local setmark = utils .nil_wrap (api .nvim_buf_set_extmark )
889889 local ns = api .nvim_create_namespace (" fzf-lua.preview.hl" )
890890 for _ , extmark in ipairs (extmarks ) do
891891 setmark (tmpbuf , ns , extmark .row , extmark .col ,
@@ -1333,7 +1333,7 @@ function Previewer.buffer_or_file:set_cursor_hl(entry)
13331333 if not extmark and hls .cursor and entry .col and entry .col > 0 then
13341334 local end_lnum , end_col = entry .end_line or lnum , entry .end_col or col + 1
13351335 -- stale line/col can cause out-of-range, e.g. marks
1336- vim . F .nil_wrap (api .nvim_buf_set_extmark )(buf , self .ns_previewer , lnum - 1 , col - 1 , {
1336+ utils .nil_wrap (api .nvim_buf_set_extmark )(buf , self .ns_previewer , lnum - 1 , col - 1 , {
13371337 end_line = end_lnum - 1 ,
13381338 end_col = math.max (1 , end_col ) - 1 ,
13391339 hl_group = entry .hlgroup or hls .cursor ,
0 commit comments