Skip to content

Commit

Permalink
Remove two lines that did nothing (ineffassign)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Jul 6, 2023
1 parent f7f1471 commit 4edbaa5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions v2/highlight.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ func (e *Editor) WriteLines(c *vt100.Canvas, fromline, toline LineIndex, cx, cy
// TODO: Check if just "fmt.Print" works here, for several terminal emulators
fmt.Println(screenLine)
lineRuneCount += uint(utf8.RuneCountInString(screenLine))
lineStringCount += uint(len(screenLine))
} else {
var (
// Color and unescape
Expand Down Expand Up @@ -520,7 +519,6 @@ func (e *Editor) WriteLines(c *vt100.Canvas, fromline, toline LineIndex, cx, cy
screenLine = e.ChopLine(line, int(cw))
c.Write(cx+lineRuneCount, cy+uint(y), e.Foreground, e.Background, screenLine)
lineRuneCount += uint(utf8.RuneCountInString(screenLine)) // rune count
lineStringCount += uint(len(screenLine)) // string length, not rune length
}

// Fill the rest of the line on the canvas with "blanks"
Expand Down

0 comments on commit 4edbaa5

Please sign in to comment.