[ruby/irb] Fix failure of more command with -R option

(https://github.com/ruby/irb/pull/781)

https://github.com/ruby/irb/commit/7d6849e44e
This commit is contained in:
hogelog 2023-11-23 16:24:31 +09:00 committed by git
parent 926bfc3bc0
commit e2078ccd5a

View File

@ -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