mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
d1b06229fa
commit
f2435c1508
2 changed files with 1 additions and 4 deletions
|
@ -1,5 +1,3 @@
|
|||
require 'pathname'
|
||||
|
||||
class Reline::Config
|
||||
attr_reader :test_mode
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue