Skip to content

Commit 42d3541

Browse files
committed
Improve syntax highlighting of binary files
1 parent 48a0125 commit 42d3541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v2/highlight.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ func (e *Editor) WriteLines(c *vt100.Canvas, fromline, toline LineIndex, cx, cy
595595
}
596596
}
597597

598-
if ra.R != '\t' {
598+
if ra.R != '\t' && !e.binaryFile {
599599
letter = ra.R
600600
rw = runewidth.RuneWidth(letter)
601601
if unicode.IsControl(letter) {

0 commit comments

Comments
 (0)