aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-03-30 13:42:03 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-03 10:32:41 -0300
commit77bfb6cd990c67e4191d4858af82de42303e1939 (patch)
treed7c6fbf45cbe581fbf4e3edabf506d8fcf153037 /src/os_unix.c
parent6d712defa52e58627aca5c875677d14d705300e8 (diff)
downloadrneovim-77bfb6cd990c67e4191d4858af82de42303e1939.tar.gz
rneovim-77bfb6cd990c67e4191d4858af82de42303e1939.tar.bz2
rneovim-77bfb6cd990c67e4191d4858af82de42303e1939.zip
Test and refactor gettail -> path_tail.
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 69c913e306..c29d1801f7 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1943,7 +1943,7 @@ int flags; /* EW_* flags */
else if (STRCMP(p_sh + len - 3, "zsh") == 0)
shell_style = STYLE_PRINT;
}
- if (shell_style == STYLE_ECHO && strstr((char *)gettail(p_sh),
+ if (shell_style == STYLE_ECHO && strstr((char *)path_tail(p_sh),
"sh") != NULL)
shell_style = STYLE_VIMGLOB;