File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -861,21 +861,19 @@ def wait_next_action_
861
861
step_tp iter do |event |
862
862
next if event == :line && skip_line
863
863
864
- loc = caller_locations ( 2 , 1 ) . first
865
- loc_path = loc . absolute_path || "!eval:#{ loc . path } "
866
-
867
864
stack_depth = DEBUGGER__ . frame_depth - 3
868
865
869
866
# If we're at a deeper stack depth, we can skip line events until there's a return event.
870
867
skip_line = event == :line && stack_depth > depth
871
868
872
869
# same stack depth
873
- ( stack_depth <= depth ) ||
870
+ next true if stack_depth <= depth
871
+
872
+ loc = caller_locations ( 2 , 1 ) . first
873
+ loc_path = loc . absolute_path || "!eval:#{ loc . path } "
874
874
875
875
# different frame
876
- ( next_line && loc_path == path &&
877
- ( loc_lineno = loc . lineno ) > line &&
878
- loc_lineno <= next_line )
876
+ next_line && loc_path == path && loc . lineno . between? ( line + 1 , next_line )
879
877
end
880
878
break
881
879
You can’t perform that action at this time.
0 commit comments