1
0
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:
Nicolas Viennot 2013-07-02 14:33:11 -04:00
parent b8a65c20be
commit bddab8eff2
2 changed files with 6 additions and 1 deletions

View File

@ -410,6 +410,10 @@ static void tmate_write_copy_mode(struct tmate_unpacker *uk)
tmate_fatal("can't find pane id=%d", id); tmate_fatal("can't find pane id=%d", id);
str = unpack_string(uk); 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); window_copy_add(wp, "%s", str);
free(str); free(str);
} }

View File

@ -199,8 +199,9 @@ static void handle_sigalrm(void)
static void handle_sigsegv(void) static void handle_sigsegv(void)
{ {
tmate_fatal("CRASH"); tmate_info("CRASH, printing stack trace");
tmate_print_trace(); tmate_print_trace();
tmate_fatal("CRASHED");
} }
static void handle_sigusr1(void) static void handle_sigusr1(void)