aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termiolink.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-12-25 01:15:56 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-12-25 01:15:56 +0000
commit52b938fedcf998989c6a89f9ce789cfc7213e332 (patch)
tree420ba4260f45832d67fc47c1e0ae7eb1ce1100b2 /src/bin/termiolink.c
parentreadme wrong (diff)
downloadterminology-52b938fedcf998989c6a89f9ce789cfc7213e332.tar.gz
fix file path link detect.
SVN revision: 81685
Diffstat (limited to 'src/bin/termiolink.c')
-rw-r--r--src/bin/termiolink.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index e523320..8443153 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -78,21 +78,19 @@ _is_file(const char *str)
switch (str[0])
{
case '/':
+ return EINA_TRUE;
case '~':
- if (str[1] == '/')
- return EINA_TRUE;
- return EINA_FALSE;
-
+ if (str[1] == '/')
+ return EINA_TRUE;
+ return EINA_FALSE;
case '.':
- if (str[1] == '/')
- return EINA_TRUE;
- else if ((str[1] == '.') && (str[2] == '/'))
- return EINA_TRUE;
-
- return EINA_FALSE;
-
+ if (str[1] == '/')
+ return EINA_TRUE;
+ else if ((str[1] == '.') && (str[2] == '/'))
+ return EINA_TRUE;
+ return EINA_FALSE;
default:
- return EINA_FALSE;
+ return EINA_FALSE;
}
}