summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/terminal.go b/src/terminal.go
index e1d14adc..7d826fa3 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -2647,6 +2647,9 @@ func (t *Terminal) headerIndent(borderShape tui.BorderShape) int {
}
if borderShape.HasLeft() {
indentSize -= 1 + t.borderWidth
+ if indentSize < 0 {
+ indentSize = 0
+ }
}
return indentSize
}