diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 127f3706b..aa885116d 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -35,6 +35,7 @@ New features:: Bug fixes:: * core: fix integer overflow when setting integer option with `++N` or `--N` + * core: fix increment/decrement of options weechat.notify.* * core: fix cursor position after `/plugin list -i` or `/plugin list -il` * core: display focus hashtable for debug even if no key is matching * fset: remove extra spaces between min and max values when second format is used diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 0a7068315..421cc6b0f 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -2466,27 +2466,6 @@ config_weechat_layout_write_cb (const void *pointer, void *data, return WEECHAT_CONFIG_WRITE_OK; } -/* - * Checks notify option value. - * - * Returns: - * 1: value OK - * 0: invalid value - */ - -int -config_weechat_notify_check_cb (const void *pointer, void *data, - struct t_config_option *option, - const char *value) -{ - /* make C compiler happy */ - (void) pointer; - (void) data; - (void) option; - - return (gui_buffer_search_notify (value) >= 0) ? 1 : 0; -} - /* * Callback for changes on a notify option. */ @@ -2550,7 +2529,7 @@ config_weechat_notify_create_option_cb (const void *pointer, void *data, _("Notify level for buffer"), "none|highlight|message|all", 0, 0, "", value, 0, - &config_weechat_notify_check_cb, NULL, NULL, + NULL, NULL, NULL, &config_weechat_notify_change_cb, NULL, NULL, NULL, NULL, NULL); rc = (ptr_option) ?