mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
Modify term_move to accept only non negative coordinates.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4380 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9070ecdcf7
commit
da9582e5aa
@ -354,6 +354,7 @@ void term_set_color(TERM_WINDOW *window, int col)
|
|||||||
|
|
||||||
void term_move(TERM_WINDOW *window, int x, int y)
|
void term_move(TERM_WINDOW *window, int x, int y)
|
||||||
{
|
{
|
||||||
|
if (x >= 0 && y >= 0) {
|
||||||
vcmove = TRUE;
|
vcmove = TRUE;
|
||||||
vcx = x+window->x;
|
vcx = x+window->x;
|
||||||
vcy = y+window->y;
|
vcy = y+window->y;
|
||||||
@ -363,6 +364,7 @@ void term_move(TERM_WINDOW *window, int x, int y)
|
|||||||
if (vcy >= term_height)
|
if (vcy >= term_height)
|
||||||
vcy = term_height-1;
|
vcy = term_height-1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void term_printed_text(int count)
|
static void term_printed_text(int count)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user