lib/byebug/commands/finish.rb in byebug-1.3.0 vs lib/byebug/commands/finish.rb in byebug-1.3.1

- old
+ new

@@ -9,10 +9,10 @@ /^\s*fin(?:ish)? (?:\s+(.*))?$/x end def execute max_frame = @state.context.stack_size - @state.frame_pos - if !@match[1] or @match[1].empty? + if not @match[1] frame_pos = @state.frame_pos else frame_pos = get_int(@match[1], "Finish", 0, max_frame-1, 0) return nil unless frame_pos end