mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-10 17:53:23 +00:00
Move overlay line for a few more commands
This commit is contained in:
parent
7fe32301c4
commit
68013e8fe7
1 changed files with 2 additions and 0 deletions
|
|
@ -1330,6 +1330,7 @@ screen_reverse_scroll_and_fill_from_scrollback(Screen *self, unsigned int count)
|
|||
void
|
||||
screen_carriage_return(Screen *self) {
|
||||
if (self->cursor->x != 0) {
|
||||
SAVE_OVERLAY_LINE;
|
||||
self->cursor->x = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -1481,6 +1482,7 @@ screen_ensure_bounds(Screen *self, bool force_use_margins/*=false*/, bool in_mar
|
|||
|
||||
void
|
||||
screen_cursor_position(Screen *self, unsigned int line, unsigned int column) {
|
||||
SAVE_OVERLAY_LINE;
|
||||
bool in_margins = cursor_within_margins(self);
|
||||
line = (line == 0 ? 1 : line) - 1;
|
||||
column = (column == 0 ? 1: column) - 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue