summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authorhogelog <konbu.komuro@gmail.com>2023-11-23 16:24:31 +0900
committergit <svn-admin@ruby-lang.org>2023-11-23 07:24:35 +0000
commite2078ccd5a54e54e16bec8db96c45d467307e6c3 (patch)
tree966731c1d49c798ba35a74b0b288c4b7082252e1 /lib/irb
parent926bfc3bc0cfea976533c8eba8cda1fa298124e2 (diff)
[ruby/irb] Fix failure of more command with -R option
(https://github.com/ruby/irb/pull/781) https://github.com/ruby/irb/commit/7d6849e44e
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/pager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/pager.rb b/lib/irb/pager.rb
index 1194e41f6f..119515078b 100644
--- a/lib/irb/pager.rb
+++ b/lib/irb/pager.rb
@@ -62,7 +62,7 @@ module IRB
pager = Shellwords.split(pager)
next if pager.empty?
- if pager.first == 'less' || pager.first == 'more'
+ if pager.first == 'less'
pager << '-R' unless pager.include?('-R')
end