1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

core: flush stdout/stderr after sending text directly on them (fix corrupted data sent to hook_process() callback) (closes #442)

This commit is contained in:
Sébastien Helleu
2015-07-25 09:16:08 +02:00
parent b99a630705
commit 7572fec261
7 changed files with 18 additions and 3 deletions
+2
View File
@@ -2521,6 +2521,7 @@ gui_window_send_clipboard (const char *storage_unit, const char *text)
fprintf (stderr, "\033]52;%s;%s\a",
(storage_unit) ? storage_unit : "",
text_base64);
fflush (stderr);
free (text_base64);
}
}
@@ -2545,6 +2546,7 @@ gui_window_set_bracketed_paste_mode (int enable)
(screen) ? "\033P" : "",
(enable) ? "h" : "l",
(screen) ? "\033\\" : "");
fflush (stderr);
}
/*