From dfdd5b1c5075c689ee20b857c46327f8add848b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 26 May 2021 08:53:31 +0200 Subject: core: add signals "cursor_start" and "cursor_end" --- src/gui/gui-cursor.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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 #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); } /* -- cgit v1.2.3