Mercurial > vim
diff src/charset.c @ 17809:59f8948b7590 v8.1.1901
patch 8.1.1901: the +insert_expand feature is not always available
Commit: https://github.com/vim/vim/commit/e2c453d38f6512ac4cff7cd26aa7780b4e2534d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 21 14:37:09 2019 +0200
patch 8.1.1901: the +insert_expand feature is not always available
Problem: The +insert_expand feature is not always available.
Solution: Graduate the +insert_expand feature.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Aug 2019 14:45:04 +0200 |
parents | 0f7ae8010787 |
children | 1c7a91cf2356 |
line wrap: on
line diff
--- a/src/charset.c +++ b/src/charset.c @@ -314,8 +314,6 @@ trans_characters( } } -#if defined(FEAT_EVAL) || defined(FEAT_TITLE) || defined(FEAT_INS_EXPAND) \ - || defined(PROTO) /* * Translate a string into allocated memory, replacing special chars with * printable chars. Returns NULL when out of memory. @@ -382,9 +380,7 @@ transstr(char_u *s) } return res; } -#endif -#if defined(FEAT_SYN_HL) || defined(FEAT_INS_EXPAND) || defined(PROTO) /* * Convert the string "str[orglen]" to do ignore-case comparing. Uses the * current locale. @@ -495,7 +491,6 @@ str_foldcase( return (char_u *)ga.ga_data; return buf; } -#endif /* * Catch 22: g_chartab[] can't be initialized before the options are @@ -2015,6 +2010,7 @@ backslash_halve(char_u *p) /* * backslash_halve() plus save the result in allocated memory. + * However, returns "p" when out of memory. */ char_u * backslash_halve_save(char_u *p)