Skip to content

Commit 7f3ced4

Browse files
committed
fix(reuse_win): handle reuse_win for current file jump
1 parent 415af52 commit 7f3ced4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/telescope/builtin/__lsp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ local function list_or_jump(action, title, funname, params, opts)
245245

246246
if #items == 1 and opts.jump_type ~= "never" then
247247
local item = items[1]
248-
if opts.curr_filepath ~= item.filename then
248+
if opts.curr_filepath ~= item.filename or not opts.reuse_win then
249249
local cmd
250250
if opts.jump_type == "tab" then
251251
cmd = "tabedit"

0 commit comments

Comments
 (0)