From b793e9bb9234d63ded2b32386770503b88116976 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Thu, 2 Jul 2020 17:57:50 -0400 Subject: [PATCH] Use tcell's CanDisplay instead of Go's IsPrint Fixes #1755 --- internal/screen/screen.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/screen/screen.go b/internal/screen/screen.go index f9661a0c..9093d8f9 100644 --- a/internal/screen/screen.go +++ b/internal/screen/screen.go @@ -4,7 +4,6 @@ import ( "errors" "os" "sync" - "unicode" "github.com/zyedidia/micro/v2/internal/config" "github.com/zyedidia/micro/v2/internal/util" @@ -98,7 +97,7 @@ func ShowCursor(x, y int) { // SetContent sets a cell at a point on the screen and makes sure that it is // synced with the last cursor location func SetContent(x, y int, mainc rune, combc []rune, style tcell.Style) { - if !unicode.IsPrint(mainc) { + if !Screen.CanDisplay(mainc, true) { mainc = '�' }