Sanitize terminal widget text
This commit is contained in:
committed by
Brandon McGinty
parent
8348a7083d
commit
770635955a
+1
-1
@@ -146,7 +146,7 @@ func (t *Textview) uiDraw() {
|
||||
var chr rune = ' '
|
||||
if reader != nil {
|
||||
if ch, _, err := reader.ReadRune(); err == nil {
|
||||
chr = ch
|
||||
chr = safeRune(ch)
|
||||
} //no err
|
||||
} //reader != nil
|
||||
termbox.SetCell(x, y, chr, termbox.Attribute(t.Fg), termbox.Attribute(t.Bg))
|
||||
|
||||
Reference in New Issue
Block a user