mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
C-v C-j means an newline insertion
This commit is contained in:
parent
da3fabc976
commit
bb29ed6e33
1 changed files with 5 additions and 1 deletions
|
@ -851,7 +851,11 @@ class Reline::LineEditor
|
||||||
private def ed_quoted_insert(str, arg: 1)
|
private def ed_quoted_insert(str, arg: 1)
|
||||||
@waiting_proc = proc { |key|
|
@waiting_proc = proc { |key|
|
||||||
arg.times do
|
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
|
end
|
||||||
@waiting_proc = nil
|
@waiting_proc = nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue