Cleanup previous PR
This commit is contained in:
parent
89e0abd41d
commit
8fcb6278d7
@ -93,8 +93,8 @@ Detailed list of changes
|
|||||||
|
|
||||||
- Fix a regression in the previous release that broke strikethrough (:disc:`4632`)
|
- 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
|
- A new action :ac:`scroll_prompt_to_bottom` to move the current prompt
|
||||||
to the bottom. (:pull:`4634`)
|
to the bottom, filling in the window from the scrollback (:pull:`4634`)
|
||||||
|
|
||||||
0.24.2 [2022-02-03]
|
0.24.2 [2022-02-03]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
@ -3728,7 +3728,7 @@ scroll_prompt_to_bottom(Screen *self, PyObject *args UNUSED) {
|
|||||||
// not before prompt or cursor line
|
// not before prompt or cursor line
|
||||||
while (y > limit_y) {
|
while (y > limit_y) {
|
||||||
Line *line = checked_range_line(self, y);
|
Line *line = checked_range_line(self, y);
|
||||||
if (line_length(line)) break;
|
if (!line || line_length(line)) break;
|
||||||
y--;
|
y--;
|
||||||
}
|
}
|
||||||
// don't scroll back beyond the history buffer range
|
// don't scroll back beyond the history buffer range
|
||||||
|
|||||||
@ -1241,7 +1241,7 @@ class Window:
|
|||||||
if self.screen.is_main_linebuf():
|
if self.screen.is_main_linebuf():
|
||||||
self.screen.scroll_to_prompt(num_of_prompts)
|
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:
|
def scroll_prompt_to_bottom(self) -> None:
|
||||||
self.screen.scroll_prompt_to_bottom()
|
self.screen.scroll_prompt_to_bottom()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user