1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00: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)
{
if (pos-scrstart < COLS-1-promptlen && pos-scrstart > 0) {
if (pos-scrstart < COLS-2-promptlen && pos-scrstart > 0) {
scrpos = pos-scrstart;
return;
}
@ -47,8 +47,8 @@ static void entry_update(void)
char *p;
int n, len;
len = entry->len-scrstart > COLS-promptlen ?
COLS-promptlen : entry->len-scrstart;
len = entry->len-scrstart > COLS-1-promptlen ?
COLS-1-promptlen : entry->len-scrstart;
set_color(stdscr, 0);
move(LINES-1, promptlen);