C-v C-j means an newline insertion
This commit is contained in:
parent
da3fabc976
commit
bb29ed6e33
@ -851,8 +851,12 @@ 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
|
||||||
|
if key == "\C-j".ord or key == "\C-m".ord
|
||||||
|
ed_newline(key)
|
||||||
|
else
|
||||||
ed_insert(key)
|
ed_insert(key)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
@waiting_proc = nil
|
@waiting_proc = nil
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user