Skip to content

Fix inputrc nested $if $else $endif bug - #689

Merged
ima1zumi merged 1 commit into
ruby:masterfrom
tompng:inputrc_if_else_endif_fix
Apr 25, 2024
Merged

ima1zumi merged 1 commit into
ruby:masterfrom
tompng:inputrc_if_else_endif_fix

Conversation

@tompng

@tompng tompng commented Apr 25, 2024

Copy link
Copy Markdown
Member

Reading inputrc had a bug like this

$if Ruby
$else
$endif

# Everything below is skipped
set editing-mode vi

Although the above example is not a nested $if, this is caused by nested $if bug.
This pull request fixes it, and add nested $if tests.

@tompng tompng added the bug Something isn't working label Apr 25, 2024

@ima1zumi ima1zumi left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ima1zumi
ima1zumi merged commit 0d8aea2 into ruby:master Apr 25, 2024
@tompng
tompng deleted the inputrc_if_else_endif_fix branch April 25, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants