mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Bug fix with copy mode
This commit is contained in:
parent
b8a65c20be
commit
bddab8eff2
@ -410,6 +410,10 @@ static void tmate_write_copy_mode(struct tmate_unpacker *uk)
|
||||
tmate_fatal("can't find pane id=%d", id);
|
||||
|
||||
str = unpack_string(uk);
|
||||
|
||||
if (window_pane_set_mode(wp, &window_copy_mode) == 0)
|
||||
window_copy_init_for_output(wp);
|
||||
|
||||
window_copy_add(wp, "%s", str);
|
||||
free(str);
|
||||
}
|
||||
|
@ -199,8 +199,9 @@ static void handle_sigalrm(void)
|
||||
|
||||
static void handle_sigsegv(void)
|
||||
{
|
||||
tmate_fatal("CRASH");
|
||||
tmate_info("CRASH, printing stack trace");
|
||||
tmate_print_trace();
|
||||
tmate_fatal("CRASHED");
|
||||
}
|
||||
|
||||
static void handle_sigusr1(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user