diff options
author | hogelog <[email protected]> | 2023-11-23 16:24:31 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-11-23 07:24:35 +0000 |
commit | e2078ccd5a54e54e16bec8db96c45d467307e6c3 (patch) | |
tree | 966731c1d49c798ba35a74b0b288c4b7082252e1 | |
parent | 926bfc3bc0cfea976533c8eba8cda1fa298124e2 (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
-rw-r--r-- | lib/irb/pager.rb | 2 |
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 |