[ditz-talk] [PATCH] Don't ignore don't-page-when-short when LESS env var is set
nicolas.pouillard at gmail.com
Wed Nov 5 08:02:16 EST 2008
I do not agree with that patch, if I know less options I like, I don't want
them to be changed by programs I use. However I understand the needs, so
maybe a better solution exists.
Excerpts from Daniel Kalør's message of Wed Nov 05 09:28:08 +0100 2008:
> lib/ditz.rb | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
> diff --git a/lib/ditz.rb b/lib/ditz.rb
> index 8c17ed3..7227447 100644
> --- a/lib/ditz.rb
> +++ b/lib/ditz.rb
> @@ -86,8 +86,7 @@ def run_pager
> - ENV['LESS'] ||= 'FSRX' # Don't page if the input is short enough, unless
> - # the user already have a LESS variable.
> + ENV['LESS'] += ' FSRX' # Don't page if the input is short enough
> Kernel.select [STDIN] # Wait until we have input before we start the pager
> pager = ENV['PAGER'] || 'less'
Nicolas Pouillard aka Ertai
More information about the ditz-talk