summaryrefslogtreecommitdiffstats
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-21 14:37:09 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-21 14:37:09 +0200
commite2c453d38f6512ac4cff7cd26aa7780b4e2534d7 (patch)
tree8458a35d59ac43121bfd2d24d5e9f7f54969d0dc /src/charset.c
parentd933c82ff4e2c910bd533ed9a50377699c3f5ec9 (diff)
patch 8.1.1901: the +insert_expand feature is not always availablev8.1.1901
Problem: The +insert_expand feature is not always available. Solution: Graduate the +insert_expand feature.
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/charset.c b/src/charset.c
index 50ca617dc2..d47ccfd691 100644
--- 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)