diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-08-12 11:09:25 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2020-08-18 19:09:58 +0900 |
commit | f2435c15089f5789a1ad6bd5bd57d4ae5a9913c2 (patch) | |
tree | ee36062c03a73e58fd1df2bb7611ac5bbf2ae5bc /lib/reline/line_editor.rb | |
parent | d1b06229fab604515a29bd03eea0ac0c960a1ccf (diff) | |
download | ruby-f2435c15089f5789a1ad6bd5bd57d4ae5a9913c2.tar.gz |
[ruby/reline] Get rid of loading pathname unnecessarily
https://github.com/ruby/reline/commit/9bd54b7f1c
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r-- | lib/reline/line_editor.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 4eee4bd632..c9d88edc85 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -2,7 +2,6 @@ require 'reline/kill_ring' require 'reline/unicode' require 'tempfile' -require 'pathname' class Reline::LineEditor # TODO: undo @@ -2145,7 +2144,7 @@ class Reline::LineEditor fp.path } system("#{ENV['EDITOR']} #{path}") - @line = Pathname.new(path).read + @line = File.read(path) finish end |