Mercurial > vim
comparison src/misc1.c @ 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 | c10f367d0dfc |
children | c96534dd2b2f |
comparison
equal
deleted
inserted
replaced
10661:f098faca8362 | 10662:bc1c7e799e6e |
---|---|
2178 ins_char(int c) | 2178 ins_char(int c) |
2179 { | 2179 { |
2180 char_u buf[MB_MAXBYTES + 1]; | 2180 char_u buf[MB_MAXBYTES + 1]; |
2181 int n = 1; | 2181 int n = 1; |
2182 | 2182 |
2183 #if defined(FEAT_MBYTE) || defined(PROTO) | 2183 #ifdef FEAT_MBYTE |
2184 n = (*mb_char2bytes)(c, buf); | 2184 n = (*mb_char2bytes)(c, buf); |
2185 | 2185 |
2186 /* When "c" is 0x100, 0x200, etc. we don't want to insert a NUL byte. | 2186 /* When "c" is 0x100, 0x200, etc. we don't want to insert a NUL byte. |
2187 * Happens for CTRL-Vu9900. */ | 2187 * Happens for CTRL-Vu9900. */ |
2188 if (buf[0] == 0) | 2188 if (buf[0] == 0) |