aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2023-07-29 12:07:14 -0230
committerSam Anthony <sam@samanthony.xyz>2023-07-29 12:07:14 -0230
commite8d2f184a7a069dcee6e7b5bd2df7dc58bf90320 (patch)
treea614996faba42edb5a809e3345e24c8fd0a533e6
parent9b889ee09e7e6a4ffc257044aaf5334827759050 (diff)
downloadpfc-e8d2f184a7a069dcee6e7b5bd2df7dc58bf90320.zip
rename var lines -> padlines
-rw-r--r--ui.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui.go b/ui.go
index 4019e4b..b3e9c1f 100644
--- a/ui.go
+++ b/ui.go
@@ -103,12 +103,12 @@ func padding(ui UI) string {
stack = len(ui.calc.stack) + 2
buf = 3
)
- lines := ui.height - anglem - stack - buf
- if lines < 1 {
+ padlines := ui.height - anglem - stack - buf
+ if padlines < 1 {
return ""
}
- s := make([]byte, lines)
- for i := 0; i < lines; i++ {
+ s := make([]byte, padlines)
+ for i := 0; i < padlines; i++ {
s[i] = '\n'
}
return string(s)