Cleanup previous PR

This commit is contained in:
Kovid Goyal 2022-02-04 20:38:32 +05:30
parent 89e0abd41d
commit 8fcb6278d7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 4 additions and 4 deletions

View File

@ -93,8 +93,8 @@ Detailed list of changes
- Fix a regression in the previous release that broke strikethrough (:disc:`4632`)
- A new action :ac:`scroll_prompt_to_bottom` to moves the non-empty prompt lines
to the bottom. (:pull:`4634`)
- A new action :ac:`scroll_prompt_to_bottom` to move the current prompt
to the bottom, filling in the window from the scrollback (:pull:`4634`)
0.24.2 [2022-02-03]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -3728,7 +3728,7 @@ scroll_prompt_to_bottom(Screen *self, PyObject *args UNUSED) {
// not before prompt or cursor line
while (y > limit_y) {
Line *line = checked_range_line(self, y);
if (line_length(line)) break;
if (!line || line_length(line)) break;
y--;
}
// don't scroll back beyond the history buffer range

View File

@ -1241,7 +1241,7 @@ class Window:
if self.screen.is_main_linebuf():
self.screen.scroll_to_prompt(num_of_prompts)
@ac('sc', 'Scroll prompt to the bottom of the screen')
@ac('sc', 'Scroll prompt to the bottom of the screen, filling in extra lines form the scrollback buffer')
def scroll_prompt_to_bottom(self) -> None:
self.screen.scroll_prompt_to_bottom()