diff options
author | James Booth <boothj5@gmail.com> | 2012-10-08 22:34:45 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-10-08 22:34:45 +0100 |
commit | 2294d908f6927ca98e7e6ee68020f870d1556d59 (patch) | |
tree | bc712cfe710bdd4082ef8b864621419fe35f1566 /src | |
parent | ee463894863f4101d73bfb848edd7c46e45ded67 (diff) | |
download | profani-tty-2294d908f6927ca98e7e6ee68020f870d1556d59.tar.gz |
Added comments to new window open
Diffstat (limited to 'src')
-rw-r--r-- | src/windows.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |