diff options
author | tomoya ishida <[email protected]> | 2023-02-27 17:43:51 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-02-27 08:44:02 +0000 |
commit | 92ed8e6f3f561ea25c411f94d6469497e9cb9204 (patch) | |
tree | 977f5ffd50143bbaf03abb146266c828e6b9c648 /lib/reline/line_editor.rb | |
parent | 494c274b82d267ace9878202a65fb100cb5f62f7 (diff) |
[ruby/reline] Fix the cause of test_yamatanooroti randomly failing
(https://github.com/ruby/reline/pull/474)
* Add repeated input-delete test that fails on HEAD
* Use raw mode while readmultiline
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 16e99e087a..40f89f22c8 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -457,7 +457,7 @@ class Reline::LineEditor new_lines = whole_lines end modify_lines(new_lines).each_with_index do |line, index| - @output.write "#{prompt_list ? prompt_list[index] : prompt}#{line}\n" + @output.write "#{prompt_list ? prompt_list[index] : prompt}#{line}\r\n" Reline::IOGate.erase_after_cursor end @output.flush |