From e2078ccd5a54e54e16bec8db96c45d467307e6c3 Mon Sep 17 00:00:00 2001 From: hogelog Date: Thu, 23 Nov 2023 16:24:31 +0900 Subject: [PATCH] [ruby/irb] Fix failure of more command with -R option (https://github.com/ruby/irb/pull/781) https://github.com/ruby/irb/commit/7d6849e44e --- lib/irb/pager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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