Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong indent in nomultiline mode #524

Closed
tompng opened this issue Feb 26, 2023 · 0 comments · Fixed by #696
Closed

Wrong indent in nomultiline mode #524

tompng opened this issue Feb 26, 2023 · 0 comments · Fixed by #696
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@tompng
Copy link
Member

tompng commented Feb 26, 2023

Description

In nomultiline mode, indent is +2 larger than expected when the previous line ends with do { (.

[tomoya:irb]% bin/console --nomultiline
irb(main):001:0> tap do
irb(main):002:1*     1
irb(main):003:1>   2
irb(main):004:1>   tap {
irb(main):005:2*       3
irb(main):006:2>     4
irb(main):007:2>     (
irb(main):008:3*         5
irb(main):009:3>       6

Result of irb_info

irb(main):001:0> irb_info
=> 
Ruby version: 3.2.0
IRB version: irb 1.6.2 (2022-12-13)
InputMethod: ReadlineInputMethod with ext/readline 8.2
RUBY_PLATFORM: x86_64-darwin20
LANG env: ja_JP.UTF-8
East Asian Ambiguous Width: 1

Terminal Emulator

Mac Terminal.app

Setting Files

Are you using ~/.irbrc and ~/.inputrc?
No

@tompng tompng added the bug Something isn't working label Feb 26, 2023
@tompng tompng added the good first issue Good for newcomers label Jul 17, 2023
chadrschroeder added a commit to chadrschroeder/irb that referenced this issue Aug 26, 2023
tompng pushed a commit that referenced this issue Aug 29, 2023
matzbot pushed a commit to ruby/ruby that referenced this issue Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Development

Successfully merging a pull request may close this issue.

1 participant