summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-05-26 08:53:31 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-05-26 08:53:31 +0200
commitdfdd5b1c5075c689ee20b857c46327f8add848b2 (patch)
tree4b3a20851ba51658aec6a9499c16f847c1f42324 /src
parent7cc61cdbb36b5e75d4e73b947e2690a48a9c9efe (diff)
downloadweechat-dfdd5b1c5075c689ee20b857c46327f8add848b2.zip
core: add signals "cursor_start" and "cursor_end"
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-cursor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/gui-cursor.c b/src/gui/gui-cursor.c
index fb42e6f98..bd0c46c4e 100644
--- a/src/gui/gui-cursor.c
+++ b/src/gui/gui-cursor.c
@@ -28,6 +28,8 @@
#include <string.h>
#include "../core/weechat.h"
+#include "../core/wee-hook.h"
+#include "../plugins/plugin.h"
#include "gui-cursor.h"
#include "gui-bar.h"
#include "gui-bar-window.h"
@@ -72,6 +74,11 @@ gui_cursor_mode_toggle ()
1); /* stop completion */
gui_buffer_ask_chat_refresh (gui_current_window->buffer, 2);
}
+
+ (void) hook_signal_send (
+ (gui_cursor_mode) ? "cursor_start" : "cursor_stop",
+ WEECHAT_HOOK_SIGNAL_STRING,
+ NULL);
}
/*