mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user