Skip to content

Commit

Permalink
Fix [nil] is passed to auto_indent_proc when exit with CTRL+d
Browse files Browse the repository at this point in the history
Fix it #556
  • Loading branch information
osyo-manga authored and tompng committed Jul 18, 2023
1 parent 8957494 commit 43620a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ def byte_pointer=(val)
def whole_lines
index = @previous_line_index || @line_index
temp_lines = @buffer_of_lines.dup
temp_lines[index] = @line
temp_lines[index] = @line || ""
temp_lines
end

Expand Down

0 comments on commit 43620a5

Please sign in to comment.