aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termiolink.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-06-15 18:15:24 +0200
committerBoris Faure <billiob@gmail.com>2013-06-15 22:38:59 +0200
commit3ed65bbcdc80b82fb3c404c98bf51631f211bbf9 (patch)
tree72593d071f534d8331b09c781b07a4b41afd9ce4 /src/bin/termiolink.c
parentcompat: fix mouse wheel in utf8 mode (diff)
downloadterminology-3ed65bbcdc80b82fb3c404c98bf51631f211bbf9.tar.gz
links: isspace() \ { \n, \r } as separtors
Diffstat (limited to 'src/bin/termiolink.c')
-rw-r--r--src/bin/termiolink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index 97c9461..8731da2 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -171,8 +171,9 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
{
char end = s[len - 1];
- if (((endmatch) && (end == endmatch)) ||
- ((!endmatch) && (!escaped) && (isspace(end))))
+ if ((end == endmatch) ||
+ ((!escaped) && (isspace(end)) &&
+ ((end != '\n') || (end != '\r'))))
{
goforward = EINA_FALSE;
coord_back(&x2, &y2, w, h);