Skip to content

Commit

Permalink
Fix failure of more command with -R option (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
hogelog authored Nov 23, 2023
1 parent 943c14b commit 7d6849e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/pager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def setup_pager
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

Expand Down

0 comments on commit 7d6849e

Please sign in to comment.