1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Get rid of loading pathname unnecessarily

9bd54b7f1c
This commit is contained in:
Nobuyoshi Nakada 2020-08-12 11:09:25 +09:00 committed by aycabta
parent d1b06229fa
commit f2435c1508
2 changed files with 1 additions and 4 deletions

View file

@ -1,5 +1,3 @@
require 'pathname'
class Reline::Config
attr_reader :test_mode

View file

@ -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