summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/line_editor.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index d49f6ab618..92f75c7b88 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -851,7 +851,11 @@ class Reline::LineEditor
private def ed_quoted_insert(str, arg: 1)
@waiting_proc = proc { |key|
arg.times do
- ed_insert(key)
+ if key == "\C-j".ord or key == "\C-m".ord
+ ed_newline(key)
+ else
+ ed_insert(key)
+ end
end
@waiting_proc = nil
}