summaryrefslogtreecommitdiff
path: root/src/tui
diff options
context:
space:
mode:
Diffstat (limited to 'src/tui')
-rw-r--r--src/tui/light.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tui/light.go b/src/tui/light.go
index aaa9e56f..ad9e7274 100644
--- a/src/tui/light.go
+++ b/src/tui/light.go
@@ -1161,8 +1161,8 @@ func (w *LightWindow) fill(str string, resetCode string) FillReturn {
if len(lines) > 1 {
sign := w.wrapSign
width := w.wrapSignWidth
- if width > w.width-w.posx {
- runes, truncatedWidth := util.Truncate(w.wrapSign, w.width-w.posx)
+ if width > w.width {
+ runes, truncatedWidth := util.Truncate(w.wrapSign, w.width)
sign = string(runes)
width = truncatedWidth
}