From 45fd006185fe2404c058cc01f86791071d48e504 Mon Sep 17 00:00:00 2001 From: osyo-manga Date: Wed, 19 Jul 2023 05:33:35 +0900 Subject: [ruby/reline] Fix [nil] is passed to auto_indent_proc when exit with CTRL+d (https://github.com/ruby/reline/pull/571) * Fix [nil] is passed to auto_indent_proc when exit with CTRL+d Fix it https://github.com/ruby/reline/issues/556 * not call auto_indent_proc when Ctrl+d. see: https://github.com/ruby/reline/pull/571#issuecomment-1637183195 https://github.com/ruby/reline/commit/0924f2a075 --- lib/reline/line_editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/reline/line_editor.rb') diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 7ad56a39f8..eb576507e2 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1605,7 +1605,7 @@ class Reline::LineEditor else @just_cursor_moving = false end - if @is_multiline and @auto_indent_proc and not simplified_rendering? + if @is_multiline and @auto_indent_proc and not simplified_rendering? and @line process_auto_indent end end -- cgit v1.2.3