diff --git a/ChangeLog.adoc b/ChangeLog.adoc index f59d934ef..b4fb5cc83 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -81,6 +81,7 @@ Bug fixes:: * ruby: fix crash on quit when a child process is still running (issue #1889, issue #1915) * spell: check buffer pointer received in info "spell_dict" * typing: fix crash when pointer buffer is not received in callback for signal "input_text_changed" (issue #1869) + * typing: remove nicks typing even when option typing.look.enabled_self is off (issue #1718) Tests:: diff --git a/src/plugins/typing/typing.c b/src/plugins/typing/typing.c index 5db242320..8d02928d4 100644 --- a/src/plugins/typing/typing.c +++ b/src/plugins/typing/typing.c @@ -549,6 +549,12 @@ typing_setup_hooks () "typing_reset_buffer", &typing_typing_reset_buffer_signal_cb, NULL, NULL); } + if (!typing_timer) + { + typing_timer = weechat_hook_timer ( + 1000, 0, 0, + &typing_timer_cb, NULL, NULL); + } } else { @@ -569,6 +575,8 @@ typing_setup_hooks () typing_status_nicks = NULL; } } + weechat_unhook (typing_timer); + typing_timer = NULL; } }