1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 00:33:13 +02:00

core: fix signal "buffer_switch": send it only once when switching buffer (bug #31158)

This commit is contained in:
Sebastien Helleu
2012-01-28 11:11:58 +01:00
parent 6e2c3e8722
commit 3ecd3d7a26
2 changed files with 7 additions and 2 deletions
+2
View File
@@ -7,6 +7,8 @@ v0.3.7-dev, 2012-01-28
Version 0.3.7 (under dev!)
--------------------------
* core: fix signal "buffer_switch": send it only once when switching buffer
(bug #31158)
* core: move option "scroll_unread" from command /input to /window
* core: add support of flags in regular expressions and highlight options
* core: add library "pthread" in cmake file for link on OpenBSD
+5 -2
View File
@@ -1139,8 +1139,11 @@ gui_window_switch_to_buffer (struct t_gui_window *window,
gui_input_move_to_buffer (old_buffer, window->buffer);
hook_signal_send ("buffer_switch",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
if (old_buffer != buffer)
{
hook_signal_send ("buffer_switch",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
}
}
/*