sub on_button_release {
my ($self, $event) = @_;
- if ($event->{button} == $self->{data}{event}{button}) {
- $self->ungrab;
- $self->destroy;
- }
-
$self->{press}[$event->{button}] = 0;
my ($row, $col) = ($event->{row}, $event->{col});
$self->refresh;
+ if ($event->{button} == $self->{data}{event}{button}) {
+ $self->ungrab;
+ $self->destroy;
+ }
+
1
}
selection.op = SELECTION_CLEAR;
selection.screen = PRIMARY;
selection.clicks = 0;
- CLEAR_ALL_SELECTION ();
rvideo = 0;
}
else
{
- CLEAR_ALL_SELECTION ();
-
/*
* add or delete rows as appropriate
*/
int len = min (min (prev_ncol - pcol, ncol - qcol), llen - lofs);
+#if DEBUG_STRICT
assert (len);
assert (pline.t);
+#endif
memcpy (qline->t + qcol, pline.t + pcol, len * sizeof (text_t));
memcpy (qline->r + qcol, pline.r + pcol, len * sizeof (rend_t));
free (tabs);
}
+ CLEAR_ALL_SELECTION ();
+
prev_nrow = nrow;
prev_ncol = ncol;