Skip to content

Pressing enter without explicit command causes irb to continue past breakpoint #1002

Description

@mattbrictson

Description

When using binding.irb, if I explicitly type continue to continue past a first breakpoint, then pressing enter by itself will continue past the next breakpoint. I expect pressing enter should just insert a newline (i.e. increment the irb prompt).

As you can see in the video below, pressing enter after reaching the first breakpoint just increments the irb prompt, as expected.

However, upon reaching the second breakpoint, pressing enter immediately causes the interpreter to continue past the breakpoint. This is not expected.

Untitled.mov

Result of irb_info

irb(main):001> irb_info
Ruby version: 3.3.5
IRB version: irb 1.14.0 (2024-07-06)
InputMethod: RelineInputMethod with Reline 0.5.10 and /Users/mbrictson/.inputrc
Completion: Autocomplete, RegexpCompletor
RUBY_PLATFORM: arm64-darwin23
LANG env: en_US.UTF-8
East Asian Ambiguous Width: 1

Terminal Emulator

macOS Terminal (macOS Sonoma 14.6.1)

Setting Files

~/.irbrc - None

~/.inputrc

"\e[A": history-search-backward
"\e[B": history-search-forward
$if Bash
  Space: magic-space
$endif
set completion-ignore-case on
set completion-map-case on
set match-hidden-files off
set show-all-if-ambiguous on
set colored-stats on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions