summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-entry.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-02-21 19:00:07 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-02-21 19:00:07 +0000
commita04a1c6f218422ad17bd73aa4ebab135244b3f64 (patch)
tree5f6376126a3c18ed35633c3721aba8775183c8b3 /src/fe-text/gui-entry.c
parent7103fc87b804624379a4dff884d671a73c1af47c (diff)
downloadirssi-a04a1c6f218422ad17bd73aa4ebab135244b3f64.zip
Entry line works now properly with very long prompts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1277 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-entry.c')
-rw-r--r--src/fe-text/gui-entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c
index 257a173c..4fb67596 100644
--- a/src/fe-text/gui-entry.c
+++ b/src/fe-text/gui-entry.c
@@ -40,7 +40,7 @@ static void entry_screenpos(void)
scrstart = 0;
scrpos = pos;
} else {
- scrpos = COLS/3*2-promptlen;
+ scrpos = (COLS-promptlen)*2/3;
scrstart = pos-scrpos;
}
}