summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-entry.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-07-31 21:46:31 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-07-31 21:46:31 +0000
commit059c0f715db30bfe59a5b0a1a77ac45e53c21006 (patch)
treee9c1127cf5b9900cf792578b23bcd1e7669cfd74 /src/fe-text/gui-entry.c
parentb82d10ca57899ec8c2b98f1816988c3edb33ca37 (diff)
downloadirssi-059c0f715db30bfe59a5b0a1a77ac45e53c21006.zip
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
Diffstat (limited to 'src/fe-text/gui-entry.c')
-rw-r--r--src/fe-text/gui-entry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c
index 535cfe09..13eba50c 100644
--- a/src/fe-text/gui-entry.c
+++ b/src/fe-text/gui-entry.c
@@ -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);