Repository navigation
Refactor nomultiline and multiline mode difference - #653
Merged
Merged
Conversation
tompng
force-pushed
the
simplify_nomultiline_node
branch
from
March 25, 2024 13:42
8459ca5 to
ea9e69c
Compare
tompng
marked this pull request as ready for review
March 25, 2024 13:55
…ne-singleline branch
tompng
force-pushed
the
simplify_nomultiline_node
branch
from
April 16, 2024 15:21
ea9e69c to
990b7c8
Compare
tompng
commented
Apr 16, 2024
st0012
approved these changes
Apr 17, 2024
matzbot
pushed a commit
to ruby/ruby
that referenced
this pull request
Apr 17, 2024
(ruby/reline#653) * Support multiline input in Reline.readline internally, reduce multiline-singleline branch * Add readline(singleline) prompt test with force inserting multiline text ruby/reline@97846095d7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We don't need so much if-else branch for multiline mode and nomultiline mode.
This will internally allow multiline input in nomultiline mode. (#641)
Supporting multiline in nomultiline is needed to implement bracketed paste, pasting multiline text into nomultiline mode.
To manually test multiline input in singleline mode
Input multiline input to IRB, to append multiline history
Toggle singleline mode by calling
Reline.readline '>> 'Press up arrow
You can try this reproduction step in an older version of Reline, and can see a bug like this