diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2006-09-24 21:06:46 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2006-09-24 21:06:46 +0000 |
commit | da9582e5aabd2c4e1588c166012fbfec7b0b31e7 (patch) | |
tree | e39f39f90594707a712d9a4dd605a99c05f4f0cb /src/fe-text | |
parent | 9070ecdcf778fe141f9eb2c141401ccfd8aee05b (diff) | |
download | irssi-da9582e5aabd2c4e1588c166012fbfec7b0b31e7.zip |
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
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/term-terminfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index 242eace9..feeb62c3 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -354,6 +354,7 @@ void term_set_color(TERM_WINDOW *window, int col) void term_move(TERM_WINDOW *window, int x, int y) { + if (x >= 0 && y >= 0) { vcmove = TRUE; vcx = x+window->x; vcy = y+window->y; @@ -362,6 +363,7 @@ void term_move(TERM_WINDOW *window, int x, int y) vcx = term_width-1; if (vcy >= term_height) vcy = term_height-1; + } } static void term_printed_text(int count) |