aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline/line_editor.rb
diff options
context:
space:
mode:
authorosyo-manga <manga.osyo@gmail.com>2023-07-19 05:33:35 +0900
committergit <svn-admin@ruby-lang.org>2023-07-18 20:33:39 +0000
commit45fd006185fe2404c058cc01f86791071d48e504 (patch)
treea6fc63c08c6407121f168478d4ff2a1b731988a1 /lib/reline/line_editor.rb
parentb4003079239f369632ce1ac68fb0575b41bb37be (diff)
downloadruby-45fd006185fe2404c058cc01f86791071d48e504.tar.gz
[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
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r--lib/reline/line_editor.rb2
1 files changed, 1 insertions, 1 deletions
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