From 2af2c6de3188f19061b7d15937a586d433aa93e0 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Mon, 18 Jan 2021 21:27:34 +0300 Subject: [PATCH] fix tab character when printing cc #496 --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui.go b/ui.go index 21963bb3..c2b8751e 100644 --- a/ui.go +++ b/ui.go @@ -211,7 +211,7 @@ func (win *win) print(screen tcell.Screen, x, y int, st tcell.Style, s string) t for { rc, wc := utf8.DecodeRuneInString(s[i+w:]) - if rc == gEscapeCode || runewidth.RuneWidth(rc) != 0 { + if rc == gEscapeCode || rc == '\t' || runewidth.RuneWidth(rc) != 0 { break } comb = append(comb, rc)