More linter fixes

This commit is contained in:
Kovid Goyal
2023-09-18 20:59:47 +05:30
parent 6bafdedd65
commit 7faf216f9e
3 changed files with 15 additions and 10 deletions

View File

@@ -447,10 +447,10 @@ func (self *handler) draw_theme_demo() {
if intense {
s = "bright-" + s
}
if len(c) > trunc {
c = c[:trunc]
if len(s) > trunc {
s = s[:trunc]
}
buf.WriteString(self.lp.SprintStyled("fg="+c, c))
buf.WriteString(self.lp.SprintStyled("fg="+s, s))
buf.WriteString(" ")
}
text := strings.TrimSpace(buf.String())