mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Merge branch 'fix-themes-colors' of https://github.com/ethanwu10/kitty
This commit is contained in:
commit
fd716b5753
1 changed files with 4 additions and 3 deletions
|
|
@ -451,10 +451,11 @@ func (self *handler) draw_theme_demo() {
|
|||
if intense {
|
||||
s = "bright-" + s
|
||||
}
|
||||
if len(s) > trunc {
|
||||
s = s[:trunc]
|
||||
sTrunc := s
|
||||
if len(sTrunc) > trunc {
|
||||
sTrunc = sTrunc[:trunc]
|
||||
}
|
||||
buf.WriteString(self.lp.SprintStyled("fg="+s, s))
|
||||
buf.WriteString(self.lp.SprintStyled("fg="+s, sTrunc))
|
||||
buf.WriteString(" ")
|
||||
}
|
||||
text := strings.TrimSpace(buf.String())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue