mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
Fix style issues.
* Rename mch_full_name to mch_get_absolute_path. * Rename mch_is_full_name to mch_is_absolute_path. * Add a lot of missing parentheses. * Remove yoda-conditions for consistency. * Remove spaces in function declaration.
This commit is contained in:

committed by
Thiago de Arruda

parent
fdba1761f6
commit
fc86866402
@@ -5065,7 +5065,7 @@ int path_with_url(char_u *fname)
|
||||
*/
|
||||
int vim_isAbsName(char_u *name)
|
||||
{
|
||||
return path_with_url(name) != 0 || mch_is_full_name(name);
|
||||
return path_with_url(name) != 0 || mch_is_absolute_path(name);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -5090,7 +5090,7 @@ vim_FullName (
|
||||
|
||||
url = path_with_url(fname);
|
||||
if (!url)
|
||||
retval = mch_full_name(fname, buf, len, force);
|
||||
retval = mch_get_absolute_path(fname, buf, len, force);
|
||||
if (url || retval == FAIL) {
|
||||
/* something failed; use the file name (truncate when too long) */
|
||||
vim_strncpy(buf, fname, len - 1);
|
||||
|
Reference in New Issue
Block a user