diff --git a/ui.go b/ui.go index e528b84..7f06659 100644 --- a/ui.go +++ b/ui.go @@ -443,11 +443,8 @@ func (ui *UI) loadFile(nav *Nav) { for i := 0; i < nav.height && buf.Scan(); i++ { for _, r := range buf.Text() { - if unicode.IsSpace(r) { - continue - } - if !unicode.IsPrint(r) && r != EscapeCode { - ui.regprev = []string{"binary"} + if r == 0 { + ui.regprev = []string{"binary"} return } }