From 69c7ad17235319c78766102068402ab9fcc9a5ca Mon Sep 17 00:00:00 2001 From: aycabta Date: Tue, 28 May 2019 01:51:01 +0900 Subject: [PATCH] Exit only when blank input --- lib/reline/line_editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 75b93be44d..d1f3c9b6ac 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1242,7 +1242,7 @@ class Reline::LineEditor end private def em_delete_or_list(key) - if @line.empty? + if (not @is_multiline and @line.empty?) or (@is_multiline and @line.empty? and @buffer_of_lines.size == 1) @line = nil if @buffer_of_lines.size > 1 scroll_down(@highest_in_all - @first_line_started_from)