summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Daniels <[email protected]>2022-01-13 10:06:18 -0500
committergit <[email protected]>2024-03-15 00:27:01 +0000
commit3fcab3cddf2e796a3e3b9fd8b308fd351126e305 (patch)
tree07833d53c5ef80b42a3ceca2567eb83b08a38846
parent193ebc3c3a7fc03724dedba31a38ca9196869c00 (diff)
[ruby/rdoc] Use readline history when ri is interactive
https://github.com/ruby/rdoc/commit/d0074a23cc
-rw-r--r--lib/rdoc/ri/driver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/ri/driver.rb b/lib/rdoc/ri/driver.rb
index 08c4d08f81..64783dc163 100644
--- a/lib/rdoc/ri/driver.rb
+++ b/lib/rdoc/ri/driver.rb
@@ -1088,7 +1088,7 @@ or the PAGER environment variable.
loop do
name = if defined? Readline then
- Readline.readline ">> "
+ Readline.readline ">> ", true
else
print ">> "
$stdin.gets