summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}
}