diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-03-03 15:28:28 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-04 06:54:08 -0300 |
commit | 92a0374d7b6b27cb91e51e5cfe735fbde100632c (patch) | |
tree | 7599eacc421b28d301f4ba2690dba1cc8ad6ed87 /src/os_unix.c | |
parent | 7e8c8cf5a1552602f5fb7308f77291c3e6a71779 (diff) | |
download | rneovim-92a0374d7b6b27cb91e51e5cfe735fbde100632c.tar.gz rneovim-92a0374d7b6b27cb91e51e5cfe735fbde100632c.tar.bz2 rneovim-92a0374d7b6b27cb91e51e5cfe735fbde100632c.zip |
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.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 80832024c9..003e45c2a0 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -1364,7 +1364,7 @@ int mch_can_exe(char_u *name) int retval; /* If it's an absolute or relative path don't need to use $PATH. */ - if (mch_isFullName(name) || (name[0] == '.' && (name[1] == '/' + if (mch_is_full_name(name) || (name[0] == '.' && (name[1] == '/' || (name[1] == '.' && name[2] == '/')))) return executable_file(name); |