aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyops.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-10-13 19:15:57 +0200
committerBoris Faure <billiob@gmail.com>2018-10-13 19:21:19 +0200
commitdc5c291bb9faf7a231ff4077519bd2a058418dad (patch)
tree4b7609beecef7708cc9acb1e58a36f6ce9de3f7a /src/bin/termptyops.c
parenttermio: simplify _handle_query_esc() (diff)
downloadterminology-dc5c291bb9faf7a231ff4077519bd2a058418dad.tar.gz
highlight links on mouseover
+ related fixes
Diffstat (limited to 'src/bin/termptyops.c')
-rw-r--r--src/bin/termptyops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index 3140a78..c762f05 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -319,7 +319,7 @@ termpty_clear_backlog(Termpty *ty)
{
size_t i;
for (i = 0; i < ty->backsize; i++)
- termpty_save_free(&ty->back[i]);
+ termpty_save_free(ty, &ty->back[i]);
free(ty->back);
ty->back = NULL;
}
@@ -421,7 +421,6 @@ termpty_reset_att(Termatt *att)
att->framed = 0;
att->encircled = 0;
att->overlined = 0;
- att->link_id = 0;
}
void
@@ -442,6 +441,7 @@ termpty_soft_reset_state(Termpty *ty)
ty->termstate.had_cr_y = 0;
ty->termstate.restrict_cursor = 0;
termpty_reset_att(&(ty->termstate.att));
+ ty->termstate.att.link_id = 0;
ty->termstate.charset = 0;
ty->termstate.charsetch = 'B';
ty->termstate.chset[0] = 'B';