aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termiolink.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-03-08 20:22:44 +0100
committerBoris Faure <billiob@gmail.com>2015-03-08 20:22:44 +0100
commit688bf414e4622e4fd6d2b2cd377eba569a39f580 (patch)
tree023580858255c932f45cc30bebdd200fc3066930 /src/bin/termiolink.c
parentfix CSI DECSET 1049. Should fix T725 (diff)
downloadterminology-688bf414e4622e4fd6d2b2cd377eba569a39f580.tar.gz
right trim selections
Also add a (near-dumb) string buffer abstraction because working with Eina_Strbuf, an opaque structure is a PITA.
Diffstat (limited to 'src/bin/termiolink.c')
-rw-r--r--src/bin/termiolink.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index ad6542d..c0151b1 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -112,7 +112,7 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
for (;;)
{
prev_len = len;
- s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc, &len);
+ s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc, &len, EINA_FALSE);
if (!s) break;
if (goback)
{
@@ -125,7 +125,7 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
coord_back(&x1, &y1, w, h);
free(s);
s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc,
- &len);
+ &len, EINA_FALSE);
if (!s) break;
switch (s[0])
{
@@ -142,7 +142,7 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
free(s);
prev_len = len;
s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc,
- &len);
+ &len, EINA_FALSE);
if (!s) break;
}
else
@@ -164,7 +164,7 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
goforward = EINA_TRUE;
free(s);
s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc,
- &len);
+ &len, EINA_FALSE);
if (!s) break;
}
}
@@ -197,7 +197,8 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
if ((!goback) && (!goforward))
{
free(s);
- s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc, &len);
+ s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc, &len,
+ EINA_FALSE);
break;
}
free(s);