diff options
author | aycabta <aycabta@gmail.com> | 2021-01-06 03:50:19 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-01-08 13:25:18 +0900 |
commit | 01235f800f953cf5c3410d7eab3744c5fa6156e9 (patch) | |
tree | b4bece41c730a2ebe7216175983602a52671da3d /lib | |
parent | 76c9a3c8c633241c86024a027a644f1dd6dbbc44 (diff) | |
download | ruby-01235f800f953cf5c3410d7eab3744c5fa6156e9.tar.gz |
[ruby/reline] Suppress auto indent for adding newlines in pasting
Co-authored-by: Juanito Fatas <me@juanitofatas.com>
https://github.com/ruby/reline/commit/074bb017a7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 65004cad18..31211cda33 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1339,7 +1339,7 @@ class Reline::LineEditor cursor_line = @line.byteslice(0, @byte_pointer) insert_new_line(cursor_line, next_line) @cursor = 0 - @check_new_auto_indent = true + @check_new_auto_indent = true unless Reline::IOGate.in_pasting? end end |