From 03ecbf3d55456dbba3044898e7f880f8185f33e7 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 28 Apr 2017 13:52:15 +0200
Subject: [PATCH] tweaks: remove a superfluous check

The mbwidth() function itself checks whether UTF-8 is being used
and does the right thing.
---
 src/winio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c
index 9d747b49..d06a51af 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -1852,7 +1852,7 @@ char *display_string(const char *buf, size_t start_col, size_t span,
 	    }
 	}
 #ifdef ENABLE_UTF8
-	else if (using_utf8() && mbwidth(buf) == 2) {
+	else if (mbwidth(buf) == 2) {
 	    if (column >= start_col) {
 		converted[index++] = ' ';
 		start_col++;
-- 
GitLab