aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mbyte.h
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-08-15 19:55:24 -0400
committerGitHub <noreply@github.com>2017-08-15 19:55:24 -0400
commit30cb66e8ba520d4564189ff763b5859e3d80581f (patch)
treef3795b5d8097f6488fcb09bb40f5a139913b1509 /src/nvim/mbyte.h
parentbb70eec17782501db35683f48136fcced9eae259 (diff)
parent1f4090011ef95e2bdf217405d28a1b48300965bd (diff)
downloadrneovim-30cb66e8ba520d4564189ff763b5859e3d80581f.tar.gz
rneovim-30cb66e8ba520d4564189ff763b5859e3d80581f.tar.bz2
rneovim-30cb66e8ba520d4564189ff763b5859e3d80581f.zip
Merge pull request #7168 from teto/fix_coverty
Closes #7149
Diffstat (limited to 'src/nvim/mbyte.h')
-rw-r--r--src/nvim/mbyte.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/mbyte.h b/src/nvim/mbyte.h
index 02c6065672..bf6ccb13a5 100644
--- a/src/nvim/mbyte.h
+++ b/src/nvim/mbyte.h
@@ -19,6 +19,9 @@
#define MB_BYTE2LEN(b) utf8len_tab[b]
#define MB_BYTE2LEN_CHECK(b) (((b) < 0 || (b) > 255) ? 1 : utf8len_tab[b])
+// max length of an unicode char
+#define MB_MAXCHAR 6
+
/* properties used in enc_canon_table[] (first three mutually exclusive) */
#define ENC_8BIT 0x01
#define ENC_DBCS 0x02