Fix STATUS_NOTIFY so that it appears in the right window.
The old code was reusing the 'window' variable, which means that it could pick up the STATUS_NOTIFY format from the wrong window. You would only have noticed this if you have windows with different settings for STATUS_NOTIFY. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@425 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
[Changes 1.2c01]
|
[Changes 1.2c01]
|
||||||
|
|
||||||
|
* Fix STATUS_NOTIFY so that it appears in the right window. (caf)
|
||||||
|
|
||||||
* Improve handling of padding in status formats. (caf)
|
* Improve handling of padding in status formats. (caf)
|
||||||
|
|
||||||
* Use system setenv() in preference to compat bsd_setenv(). (caf)
|
* Use system setenv() in preference to compat bsd_setenv(). (caf)
|
||||||
|
|||||||
@@ -988,14 +988,14 @@ static char *status_notify_windows(Window *window)
|
|||||||
if (get_int_var(SHOW_STATUS_ALL_VAR) || window == window->screen->current_window)
|
if (get_int_var(SHOW_STATUS_ALL_VAR) || window == window->screen->current_window)
|
||||||
{
|
{
|
||||||
*notes = 0;
|
*notes = 0;
|
||||||
window = NULL;
|
Window *notify_win = NULL;
|
||||||
while ((traverse_all_windows(&window)))
|
while ((traverse_all_windows(¬ify_win)))
|
||||||
{
|
{
|
||||||
if (window->miscflags & WINDOW_NOTIFIED)
|
if (notify_win->miscflags & WINDOW_NOTIFIED)
|
||||||
{
|
{
|
||||||
if (doneone++)
|
if (doneone++)
|
||||||
strlcat(notes, ",", sizeof notes);
|
strlcat(notes, ",", sizeof notes);
|
||||||
strlcat(notes, ltoa(window->refnum), sizeof notes);
|
strlcat(notes, ltoa(notify_win->refnum), sizeof notes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user