---
 st.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/st.c b/st.c
index caacf0c..112864e 100644
--- a/st.c
+++ b/st.c
@@ -2284,14 +2284,12 @@ void
 tputc(Rune u)
 {
        char c[UTF_SIZ];
-       int control;
-       int width, len;
+       int control = ISCONTROL(u);;
+       int width = 1, len = 1;
        Glyph *gp;
 
-       control = ISCONTROL(u);
        if (!IS_SET(MODE_UTF8) && !IS_SET(MODE_SIXEL)) {
                c[0] = u;
-               width = len = 1;
        } else {
                len = utf8encode(u, c);
                if (!control && (width = wcwidth(u)) == -1) {
-- 
2.20.1


Reply via email to