diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-21 19:00:07 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-21 19:00:07 +0000 |
commit | a04a1c6f218422ad17bd73aa4ebab135244b3f64 (patch) | |
tree | 5f6376126a3c18ed35633c3721aba8775183c8b3 /src | |
parent | 7103fc87b804624379a4dff884d671a73c1af47c (diff) | |
download | irssi-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')
-rw-r--r-- | src/fe-text/gui-entry.c | 2 |
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; } } |