Skip to content

Commit 12c5ac3

Browse files
st0012ko1
authored andcommitted
Use ThreadClient#current_frame when possible
1 parent 4381310 commit 12c5ac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/debug/thread_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@ def truncate(string, width:)
577577

578578
def show_by_editor path = nil
579579
unless path
580-
if @target_frames && frame = @target_frames[@current_frame_index]
581-
path = frame.path
580+
if current_frame
581+
path = current_frame.path
582582
else
583583
return # can't get path
584584
end

0 commit comments

Comments
 (0)