Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Feb 11, 2025
1 parent 66ca16f commit 378137d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tui/light.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 378137d

Please sign in to comment.