mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04: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:
parent
b82d10ca57
commit
059c0f715d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user