summaryrefslogtreecommitdiff
path: root/lib/reline/line_editor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r--lib/reline/line_editor.rb3
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