1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Don't draw the last character in entry line, this doesn't work right

with some terminals.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@562 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-31 21:46:31 +00:00 committed by cras
parent b82d10ca57
commit 059c0f715d

View File

@ -28,7 +28,7 @@ static char *prompt;
static void entry_screenpos(void) static void entry_screenpos(void)
{ {
if (pos-scrstart < COLS-1-promptlen && pos-scrstart > 0) { if (pos-scrstart < COLS-2-promptlen && pos-scrstart > 0) {
scrpos = pos-scrstart; scrpos = pos-scrstart;
return; return;
} }
@ -47,8 +47,8 @@ static void entry_update(void)
char *p; char *p;
int n, len; int n, len;
len = entry->len-scrstart > COLS-promptlen ? len = entry->len-scrstart > COLS-1-promptlen ?
COLS-promptlen : entry->len-scrstart; COLS-1-promptlen : entry->len-scrstart;
set_color(stdscr, 0); set_color(stdscr, 0);
move(LINES-1, promptlen); move(LINES-1, promptlen);