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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user