Skip to content

Commit

Permalink
Exit only when blank input
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed May 27, 2019
1 parent b2b5ed1 commit 69c7ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/line_editor.rb
Expand Up @@ -1242,7 +1242,7 @@ def finish
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)
Expand Down

0 comments on commit 69c7ad1

Please sign in to comment.