aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termiolink.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-05-21 21:47:22 +0200
committerBoris Faure <billiob@gmail.com>2013-05-21 21:47:22 +0200
commit17a70c5ba27f38354c9053988e41c8bd90e74c76 (patch)
treef496244227b2406d99b30865368c9e3139789bff /src/bin/termiolink.c
parenttermio_selection_get() set length of the string returned (diff)
downloadterminology-17a70c5ba27f38354c9053988e41c8bd90e74c76.tar.gz
fix detecting link on last char of a backscroll line
Diffstat (limited to 'src/bin/termiolink.c')
-rw-r--r--src/bin/termiolink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index e8c4445..188d2c7 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -109,7 +109,6 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
termio_size_get(obj, &w, &h);
sc = termio_scroll_get(obj);
if ((w <= 0) || (h <= 0)) return NULL;
- if (!coord_back(&x1, &y1, w, h)) goback = EINA_FALSE;
for (;;)
{
s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc, &len);
@@ -172,7 +171,7 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
if (len > 1)
{
if (((endmatch) && (s[len - 1] == endmatch)) ||
- ((!endmatch) &&
+ ((!endmatch) &&
((isspace(s[len - 1])) || (s[len - 1] == '>'))
))
{