Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8969
b: refs/heads/master
c: 065d9ca
h: refs/heads/master
i:
  8967: 73d8faf
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Sep 15, 2005
1 parent 60594f9 commit 0f953a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d36ba629e0ef47a03d3703ee1d38143c25532a8
refs/heads/master: 065d9cac98a5406ecd5a1368f8fd38f55739dee9
5 changes: 3 additions & 2 deletions trunk/drivers/char/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,13 +810,14 @@ int vc_resize(struct vc_data *vc, unsigned int cols, unsigned int lines)
* from the top and bottom of cursor position
*/
old_origin += (vc->vc_y - new_rows/2) * old_row_size;
end = old_origin + new_screen_size;
end = old_origin + (old_row_size * new_rows);
}
} else
/*
* Cursor near the top, copy contents from the top of buffer
*/
end = (old_rows > new_rows) ? old_origin + new_screen_size :
end = (old_rows > new_rows) ? old_origin +
(old_row_size * new_rows) :
vc->vc_scr_end;

update_attr(vc);
Expand Down

0 comments on commit 0f953a3

Please sign in to comment.