X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/84e2deef3e6453881262f3cc49e2f38187383bc4..refs/heads/master:/weechat/python/go.py diff --git a/weechat/python/go.py b/weechat/python/go.py index 25041a8..c4f7f8e 100644 --- a/weechat/python/go.py +++ b/weechat/python/go.py @@ -21,6 +21,11 @@ # # History: # +# 2024-05-30, Sébastien Helleu : +# version 3.0.1: refresh buffer input at the end of search +# 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 +105,7 @@ from __future__ import print_function SCRIPT_NAME = 'go' SCRIPT_AUTHOR = 'Sébastien Helleu ' -SCRIPT_VERSION = '2.9' +SCRIPT_VERSION = '3.0.1' SCRIPT_LICENSE = 'GPL3' SCRIPT_DESC = 'Quick jump to buffers' @@ -215,6 +220,7 @@ def go_unhook_all(): go_unhook_one('modifier') for hook in HOOK_COMMAND_RUN: go_unhook_one(hook) + weechat.bar_item_update('input_text') def go_hook_all(): @@ -234,6 +240,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):