comparison src/mbyte.c @ 13353:8412df1479a3 v8.0.1550

patch 8.0.1550: various small problems in source files commit https://github.com/vim/vim/commit/792f0e36593d1ec13ccb8a622ca5542c500577b4 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 27 17:27:13 2018 +0100 patch 8.0.1550: various small problems in source files Problem: Various small problems in source files. Solution: Fix the problems.
author Christian Brabandt <cb@256bit.org>
date Tue, 27 Feb 2018 17:30:08 +0100
parents ac42c4b11dbc
children 69517d67421f
comparison
equal deleted inserted replaced
13352:764ce635fdc7 13353:8412df1479a3
2258 } 2258 }
2259 2259
2260 /* 2260 /*
2261 * Convert Unicode character "c" to UTF-8 string in "buf[]". 2261 * Convert Unicode character "c" to UTF-8 string in "buf[]".
2262 * Returns the number of bytes. 2262 * Returns the number of bytes.
2263 * This does not include composing characters.
2264 */ 2263 */
2265 int 2264 int
2266 utf_char2bytes(int c, char_u *buf) 2265 utf_char2bytes(int c, char_u *buf)
2267 { 2266 {
2268 if (c < 0x80) /* 7 bits */ 2267 if (c < 0x80) /* 7 bits */