aboutsummaryrefslogtreecommitdiff
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-06-30 16:37:18 +0100
committerThomas Adam <thomas@xteddy.org>2022-06-30 16:37:18 +0100
commit01c4919f5f86d7c120451ae642e722ea7d9651d7 (patch)
tree588d4883507ab85ad5e51181a548346da7c86c20 /cmd-capture-pane.c
parentd8c527a5f9fc06ea15a7d04f3a54a9e49cebae62 (diff)
parentcdacc12ce305ad2f3e65e2a01328a988e3200b51 (diff)
downloadrtmux-01c4919f5f86d7c120451ae642e722ea7d9651d7.tar.gz
rtmux-01c4919f5f86d7c120451ae642e722ea7d9651d7.tar.bz2
rtmux-01c4919f5f86d7c120451ae642e722ea7d9651d7.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r--cmd-capture-pane.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c
index a3e84c46..04a88172 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -53,8 +53,8 @@ const struct cmd_entry cmd_clear_history_entry = {
.name = "clear-history",
.alias = "clearhist",
- .args = { "t:", 0, 0, NULL },
- .usage = CMD_TARGET_PANE_USAGE,
+ .args = { "Ht:", 0, 0, NULL },
+ .usage = "[-H] " CMD_TARGET_PANE_USAGE,
.target = { 't', CMD_FIND_PANE, 0 },
@@ -204,6 +204,8 @@ cmd_capture_pane_exec(struct cmd *self, struct cmdq_item *item)
if (cmd_get_entry(self) == &cmd_clear_history_entry) {
window_pane_reset_mode_all(wp);
grid_clear_history(wp->base.grid);
+ if (args_has(args, 'H'))
+ screen_reset_hyperlinks(wp->screen);
return (CMD_RETURN_NORMAL);
}