aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-03-05 12:34:15 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-06 13:10:58 -0300
commitfc8686640250561156913387c62924d2bdb5e1ac (patch)
tree470fc2e2d3cfdf978dceb565a099b67285717efe /src/os_unix.c
parentfdba1761f655ece7d6124570d20cc498c67f947e (diff)
downloadrneovim-fc8686640250561156913387c62924d2bdb5e1ac.tar.gz
rneovim-fc8686640250561156913387c62924d2bdb5e1ac.tar.bz2
rneovim-fc8686640250561156913387c62924d2bdb5e1ac.zip
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.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 045c731cd6..40eba52da8 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1344,7 +1344,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_is_full_name(name) || (name[0] == '.' && (name[1] == '/'
+ if (mch_is_absolute_path(name) || (name[0] == '.' && (name[1] == '/'
|| (name[1] == '.' &&
name[2] == '/'))))
return executable_file(name);