From e3bffa47a682362e19426b5d936a911d8b12d557 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 22 Apr 2018 19:33:46 +0300 Subject: [PATCH] globals: Do not use `false` for enc_dbcs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on screen.c code this value is not a boolean, so `false` is not appropriate. It should be either 0 or one of DBCS_… values. --- src/nvim/globals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 7a1ce46ba4..4542b7f133 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -710,7 +710,7 @@ EXTERN int vr_lines_changed INIT(= 0); /* #Lines changed by "gR" so far */ // mbyte flags that used to depend on 'encoding'. These are now deprecated, as // 'encoding' is always "utf-8". Code that use them can be refactored to // remove dead code. -#define enc_dbcs false +#define enc_dbcs 0 #define enc_utf8 true #define has_mbyte true