mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-20 06:05:16 +00:00
Merge branch 'fix-pager-cur-pos' of https://github.com/page-down/kitty
This commit is contained in:
commit
bc1c19b4f7
1 changed files with 2 additions and 1 deletions
|
|
@ -1070,7 +1070,8 @@ class Window:
|
|||
def show_scrollback(self) -> None:
|
||||
text = self.as_text(as_ansi=True, add_history=True, add_wrap_markers=True)
|
||||
data = self.pipe_data(text, has_wrap_markers=True)
|
||||
get_boss().display_scrollback(self, data['text'], data['input_line_number'])
|
||||
cursor_on_screen = self.screen.scrolled_by < self.screen.lines - self.screen.cursor.y
|
||||
get_boss().display_scrollback(self, data['text'], data['input_line_number'], report_cursor=cursor_on_screen)
|
||||
|
||||
@ac('cp', '''
|
||||
Show output from the last shell command in a pager like less
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue