summaryrefslogtreecommitdiff
path: root/lib/reline
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline')
-rw-r--r--lib/reline/config.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/reline/config.rb b/lib/reline/config.rb
index ee73143e0f..f970bccee7 100644
--- a/lib/reline/config.rb
+++ b/lib/reline/config.rb
@@ -130,8 +130,12 @@ class Reline::Config
return home_rc_path
end
+ private def default_inputrc_path
+ @default_inputrc_path ||= inputrc_path
+ end
+
def read(file = nil)
- file ||= inputrc_path
+ file ||= default_inputrc_path
begin
if file.respond_to?(:readlines)
lines = file.readlines