mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
vim-patch:8.2.0610: some tests are still old style
Problem: Some tests are still old style.
Solution: Convert to new style tests. (Yegappan Lakshmanan, closes vim/vim#5957)
08f4157c5c
Fix missing error message when sort() compare function fails.
Cherry-pick a line in test_utf8.vim from patch 8.2.0448.
Cherry-pick builtin_function() change from patch 8.2.0595.
This commit is contained in:
@@ -1335,10 +1335,10 @@ void free_all_functions(void)
|
||||
/// @param[in] len length of "name", or -1 for NUL terminated.
|
||||
///
|
||||
/// @return true if "name" looks like a builtin function name: starts with a
|
||||
/// lower case letter and doesn't contain AUTOLOAD_CHAR.
|
||||
/// lower case letter and doesn't contain AUTOLOAD_CHAR or ':'.
|
||||
static bool builtin_function(const char *name, int len)
|
||||
{
|
||||
if (!ASCII_ISLOWER(name[0])) {
|
||||
if (!ASCII_ISLOWER(name[0]) || name[1] == ':') {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user