From 2294d908f6927ca98e7e6ee68020f870d1556d59 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 8 Oct 2012 22:34:45 +0100 Subject: [PATCH] Added comments to new window open --- src/windows.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/windows.c b/src/windows.c index 0c249b9a..787d04f6 100644 --- a/src/windows.c +++ b/src/windows.c @@ -367,6 +367,7 @@ win_show_outgoing_msg(const char * const from, const char * const to, int win_index = _find_prof_win_index(to); WINDOW *win = NULL; + // create new window if (win_index == NUM_WINS) { win_index = _new_prof_win(to); win = _wins[win_index].win; @@ -376,6 +377,8 @@ win_show_outgoing_msg(const char * const from, const char * const to, const char const *status = p_contact_status(contact); _show_status_string(win, to, show, status, "--", "offline"); } + + // use existing window } else { win = _wins[win_index].win; }