diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-25 09:16:08 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-25 09:16:08 +0200 |
commit | 7572fec26150d4097ae448af9d265cd5ce39ccc3 (patch) | |
tree | c29391cdfc6c7c39e8d11fde282ea2205e2b85e5 /src/gui/curses/gui-curses-window.c | |
parent | b99a6307051d00d9fcece0588d382e2fb62c193f (diff) | |
download | weechat-7572fec26150d4097ae448af9d265cd5ce39ccc3.zip |
core: flush stdout/stderr after sending text directly on them (fix corrupted data sent to hook_process() callback) (closes #442)
Diffstat (limited to 'src/gui/curses/gui-curses-window.c')
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index a758383c9..af0a69c91 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -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); } /* |