Skip to content

Commit bc5d3c3

Browse files
committed
fix(sk): with opts.line_query=false
1 parent 518ab7a commit bc5d3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/fzf-lua/path.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ function M.entry_to_file(entry, opts, force_uri)
546546
and vim.api.nvim_buf_get_name(bufnr),
547547
terminal = terminal,
548548
path = file,
549-
line = utils.tointeger(opts.line_query and
549+
line = utils.tointeger(type(opts.line_query) == "function" and
550550
(opts.line_query(opts._last_query or opts.last_query)) or line) or 0,
551551
col = utils.tointeger(col) or 0,
552552
ctag = opts._ctag and M.entry_to_ctag(stripped) or nil,

0 commit comments

Comments
 (0)