diff options
author | Michael Vetter <jubalh@iodoru.org> | 2023-06-06 18:35:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 18:35:18 +0200 |
commit | 6247c28e3116d85efce0f6e39552241d6de80966 (patch) | |
tree | e3cf13a08c70e667733fa777d4b9e2a70db42a4f /src/ui/window.c | |
parent | d761e88ee62c0909275386258de345deef174174 (diff) | |
parent | 95e06ad16955f3b49c117cc6f2d53bf4da747154 (diff) | |
download | profani-tty-6247c28e3116d85efce0f6e39552241d6de80966.tar.gz |
Merge pull request #1842 from H3rnand3zzz/feature/plugins-download
New Feature: Plugins Download
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index e5b90f7b..49f22ca7 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1727,6 +1727,8 @@ win_print_outgoing_with_receipt(ProfWin* window, const char* show_char, const ch void win_mark_received(ProfWin* window, const char* const id) { + if (window->type == WIN_CONSOLE) + return; gboolean received = buffer_mark_received(window->layout->buffer, id); if (received) { win_redraw(window); @@ -1736,6 +1738,8 @@ win_mark_received(ProfWin* window, const char* const id) void win_update_entry_message(ProfWin* window, const char* const id, const char* const message) { + if (window->type == WIN_CONSOLE) + return; ProfBuffEntry* entry = buffer_get_entry_by_id(window->layout->buffer, id); if (entry) { free(entry->message); @@ -2289,8 +2293,7 @@ win_handle_command_exec_result_note(ProfWin* window, const char* const type, con void win_insert_last_read_position_marker(ProfWin* window, char* id) { - int size; - size = buffer_size(window->layout->buffer); + int size = buffer_size(window->layout->buffer); // TODO: this is somewhat costly. We should improve this later. // check if we already have a separator present |