Skip to content

Commit 0924f2a

Browse files
authored
Fix [nil] is passed to auto_indent_proc when exit with CTRL+d (#571)
* Fix [nil] is passed to auto_indent_proc when exit with CTRL+d Fix it #556 * not call auto_indent_proc when Ctrl+d. see: #571 (comment)
1 parent 7cd8170 commit 0924f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reline/line_editor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ def input_key(key)
16051605
else
16061606
@just_cursor_moving = false
16071607
end
1608-
if @is_multiline and @auto_indent_proc and not simplified_rendering?
1608+
if @is_multiline and @auto_indent_proc and not simplified_rendering? and @line
16091609
process_auto_indent
16101610
end
16111611
end

0 commit comments

Comments
 (0)