mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
Rename and refactor mch_FullName.
* Rename mch_FullName to mch_full_name to match the style guide. * Add mch_full_dir_name, which saves the absolute path of a given directory relative to cwd into a given buffer. * Add function append_path, which glues together two given paths with a slash. * Adapt moonscript coding style to the tests.
This commit is contained in:

committed by
Thiago de Arruda

parent
7e8c8cf5a1
commit
92a0374d7b
@@ -3944,7 +3944,7 @@ expand_shellcmd (
|
||||
flags |= EW_FILE | EW_EXEC;
|
||||
|
||||
/* For an absolute name we don't use $PATH. */
|
||||
if (mch_isFullName(pat))
|
||||
if (mch_is_full_name(pat))
|
||||
path = (char_u *)" ";
|
||||
else if ((pat[0] == '.' && (vim_ispathsep(pat[1])
|
||||
|| (pat[1] == '.' && vim_ispathsep(pat[2])))))
|
||||
|
Reference in New Issue
Block a user