Add --chop-long-lines to the less invocation as it ensures line numbers are correct even if the scrollback window is narrower

This commit is contained in:
Kovid Goyal 2018-06-07 13:29:31 +05:30
parent ed0239a556
commit 1dd489cf0c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -275,7 +275,7 @@ o('scrollback_lines', 2000, option_type=positive_int, long_text=_('''
Number of lines of history to keep in memory for scrolling back. Memory is allocated Number of lines of history to keep in memory for scrolling back. Memory is allocated
on demand.''')) on demand.'''))
o('scrollback_pager', 'less --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER', option_type=to_cmdline, long_text=_(''' o('scrollback_pager', 'less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER', option_type=to_cmdline, long_text=_('''
Program with which to view scrollback in a new window. The scrollback buffer is Program with which to view scrollback in a new window. The scrollback buffer is
passed as STDIN to this program. If you change it, make sure the program you passed as STDIN to this program. If you change it, make sure the program you
use can handle ANSI escape sequences for colors and text formatting. use can handle ANSI escape sequences for colors and text formatting.