From 701ea427ec0c0d0de0c51a9cf89e63e2e8624714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 30 May 2024 20:26:16 +0200 Subject: [PATCH] go.py 3.0: refresh immediately buffer input when /go command is executed With WeeChat >= 4.3.0, the signal "input_text_changed" is sent only when the input text is actually changed. When the /go command is bound to a key, we now have to manually force an update of the bar item "input_text" so that the list of buffers is displayed immediately, as it was with previous WeeChat versions. --- python/go.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/go.py b/python/go.py index 25041a80..7e29b003 100644 --- a/python/go.py +++ b/python/go.py @@ -21,6 +21,9 @@ # # History: # +# 2024-05-30, Sébastien Helleu : +# version 3.0: refresh immediately buffer input when /go command is executed +# (needed for WeeChat >= 4.3.0) # 2023-06-21, Sébastien Helleu : # version 2.9: add option "min_chars" # 2023-01-08, Sébastien Helleu : @@ -100,7 +103,7 @@ SCRIPT_NAME = 'go' SCRIPT_AUTHOR = 'Sébastien Helleu ' -SCRIPT_VERSION = '2.9' +SCRIPT_VERSION = '3.0' SCRIPT_LICENSE = 'GPL3' SCRIPT_DESC = 'Quick jump to buffers' @@ -234,6 +237,7 @@ def go_hook_all(): if 'modifier' not in hooks: hooks['modifier'] = weechat.hook_modifier( 'input_text_display_with_cursor', 'go_input_modifier', '') + weechat.bar_item_update('input_text') def go_start(buf):