From bccb5de89da452d9136b3c813be584f15d3018ba Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 17 Aug 2022 12:44:31 +0800 Subject: vim-patch:8.2.3699: the +title feature adds a lot of #ifdef but little code (#19809) Problem: The +title feature adds a lot of #ifdef but little code. Solution: Graduate the +title feature. https://github.com/vim/vim/commit/651fca85c71a4c5807f8f828f9ded30fbd754325 --- src/nvim/mbyte.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nvim/mbyte.c') diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index b777d3933f..5d41795913 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -1006,8 +1006,9 @@ int utf_char2len(const int c) /// Convert Unicode character to UTF-8 string /// -/// @param c character to convert to \p buf -/// @param[out] buf UTF-8 string generated from \p c, does not add \0 +/// @param c character to convert to UTF-8 string in \p buf +/// @param[out] buf UTF-8 string generated from \p c, does not add \0 +/// must have room for at least 6 bytes /// @return Number of bytes (1-6). int utf_char2bytes(const int c, char *const buf) { -- cgit