changeset 10662:bc1c7e799e6e v8.0.0221

patch 8.0.0221: unnecessary condition on PROTO commit https://github.com/vim/vim/commit/6a8ede99dd76a7de92ce9f40df6198428a530dd0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 22 19:49:12 2017 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Sun, 22 Jan 2017 20:00:04 +0100
parents f098faca8362
children 3a7291d9fd8a
files src/misc1.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    221,
+/**/
     220,
 /**/
     219,