Project

General

Profile

Bug #14427

Backport r61469

Added by znz (Kazuhiro NISHIYAMA) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-dev:50460]

Description

Please backport r61469 to ruby_2_5 branch.

2.5.0:

% rbenv exec irb -r irb/completion --simple-prompt
>> {foo: 1}.fetch(:fooo)
Traceback (most recent call last):
        3: from .../bin/irb:11:in `<main>'
        2: from (irb):1
        1: from (irb):1:in `fetch'
KeyError (key not found: :fooo
Did you mean?  :foo)

trunk:

>> {foo: 1}.fetch(:fooo)
Traceback (most recent call last):
        3: from .../bin/irb:11:in `<main>'
        2: from (irb):1
        1: from (irb):1:in `fetch'
KeyError (key not found: :fooo)
Did you mean?  :foo

Associated revisions

Revision 1c52a98f
Added by naruse (Yui NARUSE) over 1 year ago

merge revision(s) 61469: [Backport #14427]

    irb.rb: fix highlight

    * lib/irb.rb (IRB::Irb#eval_input): fix highlight for multiple
      lines exception messages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@62510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 62510
Added by naruse (Yui NARUSE) over 1 year ago

merge revision(s) 61469: [Backport #14427]

irb.rb: fix highlight

* lib/irb.rb (IRB::Irb#eval_input): fix highlight for multiple
  lines exception messages.

History

Updated by naruse (Yui NARUSE) over 1 year ago

  • Backport changed from 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED to 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONE

ruby_2_5 r62510 merged revision(s) 61469.

Also available in: Atom PDF