From a04a1c6f218422ad17bd73aa4ebab135244b3f64 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 21 Feb 2001 19:00:07 +0000 Subject: [PATCH] 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 --- src/fe-text/gui-entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }