summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-09-15 20:58:52 +0200
committerBoris Faure <billiob@gmail.com>2019-09-15 20:58:52 +0200
commite235cb00a3396350de54d41a038a97a48a96ddad (patch)
tree49a004b2a946ea970a3c8e0d639a029d1fee465c /src
parent5d0d76376cb44532c6e1da5f0ae08d5ccb4e4f80 (diff)
termiolink: fix link detection over spaces
Diffstat (limited to 'src')
-rw-r--r--src/bin/termiolink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index 58a7a6a..d5a3fd5 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -309,6 +309,8 @@ termio_link_find(const Evas_Object *obj, int cx, int cy,
309 309
310 res = _txt_at(ty, &x1, &y1, txt, &txtlen); 310 res = _txt_at(ty, &x1, &y1, txt, &txtlen);
311 if ((res != 0) || (txtlen == 0)) goto end; 311 if ((res != 0) || (txtlen == 0)) goto end;
312 if (isspace(txt[0]))
313 goto end;
312 res = ty_sb_add(&sb, txt, txtlen); 314 res = ty_sb_add(&sb, txt, txtlen);
313 if (res < 0) goto end; 315 if (res < 0) goto end;
314 316