diff options
author | Boris Faure <billiob@gmail.com> | 2015-05-27 22:28:06 +0200 |
---|---|---|
committer | Boris Faure <billiob@gmail.com> | 2015-05-27 23:20:08 +0200 |
commit | 16c184a9d20c8853652e9de29f28e9c5a336a70b (patch) | |
tree | 51d1b0d21897ef2c276b89d591c97eb77c4672d4 /src | |
parent | f2239735ab440825b73c4c87f29af00aec3fad0c (diff) |
fix link detection on links starting at first char of the screen.
Closes T2438
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/termiolink.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c index c0151b1..c571eea 100644 --- a/src/bin/termiolink.c +++ b/src/bin/termiolink.c | |||
@@ -137,13 +137,16 @@ _termio_link_find(Evas_Object *obj, int cx, int cy, | |||
137 | case '{': endmatch = '}'; break; | 137 | case '{': endmatch = '}'; break; |
138 | case '(': endmatch = ')'; break; | 138 | case '(': endmatch = ')'; break; |
139 | } | 139 | } |
140 | coord_forward(&x1, &y1, w, h); | 140 | if (!(x1 == 0 && y1 == 0)) |
141 | { | ||
142 | coord_forward(&x1, &y1, w, h); | ||
141 | 143 | ||
142 | free(s); | 144 | free(s); |
143 | prev_len = len; | 145 | prev_len = len; |
144 | s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc, | 146 | s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc, |
145 | &len, EINA_FALSE); | 147 | &len, EINA_FALSE); |
146 | if (!s) break; | 148 | if (!s) break; |
149 | } | ||
147 | } | 150 | } |
148 | else | 151 | else |
149 | { | 152 | { |