summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-22 19:49:12 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-22 19:49:12 +0100
commit6a8ede99dd76a7de92ce9f40df6198428a530dd0 (patch)
tree00413124607837d698d7d43e6c6303229c4f4e33 /src/misc1.c
parent15eedf1d621d980cb40f50cc6a78a09ab94388c7 (diff)
downloadvim-6a8ede99dd76a7de92ce9f40df6198428a530dd0.zip
patch 8.0.0221: unnecessary condition on PROTO
Problem: Checking if PROTO is defined inside a function has no effect. Solution: Remove the check for PROTO. (Hirohito Higashi)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 046e2f067..cc5d5e60f 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -2180,7 +2180,7 @@ ins_char(int c)
char_u buf[MB_MAXBYTES + 1];
int n = 1;
-#if defined(FEAT_MBYTE) || defined(PROTO)
+#ifdef FEAT_MBYTE
n = (*mb_char2bytes)(c, buf);
/* When "c" is 0x100, 0x200, etc. we don't want to insert a NUL byte.