mirror of https://github.com/tmux/tmux.git
Clear key properly if on space with nothing in it.
parent
50a5f84cb4
commit
a2681ffcee
|
@ -745,7 +745,7 @@ mode_tree_key(struct mode_tree_data *mtd, struct client *c, key_code *key,
|
||||||
if (yp != NULL)
|
if (yp != NULL)
|
||||||
*yp = y;
|
*yp = y;
|
||||||
if (x > mtd->width || y > mtd->height) {
|
if (x > mtd->width || y > mtd->height) {
|
||||||
if (!mtd->preview || y < mtd->height)
|
if (!mtd->preview)
|
||||||
*key = KEYC_NONE;
|
*key = KEYC_NONE;
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
@ -755,9 +755,12 @@ mode_tree_key(struct mode_tree_data *mtd, struct client *c, key_code *key,
|
||||||
mtd->current = mtd->offset + y;
|
mtd->current = mtd->offset + y;
|
||||||
if (*key == KEYC_DOUBLECLICK1_PANE)
|
if (*key == KEYC_DOUBLECLICK1_PANE)
|
||||||
*key = '\r';
|
*key = '\r';
|
||||||
|
else
|
||||||
|
*key = KEYC_NONE;
|
||||||
|
} else
|
||||||
|
*key = KEYC_NONE;
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
line = &mtd->line_list[mtd->current];
|
line = &mtd->line_list[mtd->current];
|
||||||
current = line->item;
|
current = line->item;
|
||||||
|
|
Loading…
Reference in New Issue