Skip to content

Commit 053948d

Browse files
UN-9BOTclason
authored andcommitted
fix(reuse_win): handle reuse_win for current file jump
1 parent 2ad199a commit 053948d

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
@@ -222,7 +222,7 @@ local function list_or_jump(action, title, funname, params, opts)
222222

223223
if #items == 1 and opts.jump_type ~= "never" then
224224
local item = items[1]
225-
if opts.curr_filepath ~= item.filename then
225+
if opts.curr_filepath ~= item.filename or not opts.reuse_win then
226226
local cmd
227227
if opts.jump_type == "tab" then
228228
cmd = "tabedit"

0 commit comments

Comments
 (0)