Skip to content

Commit

Permalink
not call auto_indent_proc when Ctrl+d.
Browse files Browse the repository at this point in the history
  • Loading branch information
osyo-manga authored and tompng committed Jul 18, 2023
1 parent 43620a5 commit 8c09888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ def input_key(key)
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
Expand Down 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 8c09888

Please sign in to comment.