Check INPUTRC env in Reline::Config
This commit is contained in:
parent
aaaede8bcf
commit
11476e9902
@ -31,7 +31,6 @@ module Reline
|
|||||||
end
|
end
|
||||||
|
|
||||||
@@config = Reline::Config.new
|
@@config = Reline::Config.new
|
||||||
@@config.read
|
|
||||||
@@line_editor = Reline::LineEditor.new(@@config)
|
@@line_editor = Reline::LineEditor.new(@@config)
|
||||||
@@ambiguous_width = nil
|
@@ambiguous_width = nil
|
||||||
|
|
||||||
@ -134,6 +133,7 @@ module Reline
|
|||||||
|
|
||||||
def inner_readline(prompt, add_hist, multiline, &confirm_multiline_termination)
|
def inner_readline(prompt, add_hist, multiline, &confirm_multiline_termination)
|
||||||
otio = prep
|
otio = prep
|
||||||
|
@@config.read
|
||||||
|
|
||||||
may_req_ambiguous_char_width
|
may_req_ambiguous_char_width
|
||||||
if multiline
|
if multiline
|
||||||
|
@ -37,6 +37,7 @@ class Reline::Config
|
|||||||
end
|
end
|
||||||
|
|
||||||
def read(file = DEFAULT_PATH)
|
def read(file = DEFAULT_PATH)
|
||||||
|
file = ENV['INPUTRC'] if ENV['INPUTRC']
|
||||||
begin
|
begin
|
||||||
if file.respond_to?(:readlines)
|
if file.respond_to?(:readlines)
|
||||||
lines = file.readlines
|
lines = file.readlines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user