Handle systems that use less -F as pagers

Fix #3740
This commit is contained in:
Kovid Goyal 2021-06-17 21:33:26 +05:30
parent 397638998b
commit 43c1776594
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,10 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- macOS: Fix middle-click to paste from clipboard not working (:iss:`3730`)
- When displaying scrollback ensure that the window does not quit is the amount
of scrollback is less than a screen and the user has the ``--quit-if-one-screen``
option enabled for less (:iss:`3740`)
0.21.1 [2021-06-14]
----------------------

View File

@ -906,6 +906,8 @@ class Boss:
if exe:
cmd[0] = exe
if os.path.basename(cmd[0]) == 'less':
cmd.append('-+F') # reset --quit-if-one-screen
tab = self.active_tab
if tab is not None:
bdata = data.encode('utf-8') if isinstance(data, str) else data