diff options
author | Timo Sirainen <cras@irssi.org> | 2000-04-27 11:48:05 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-04-27 11:48:05 +0000 |
commit | 142025467eb50b3af7be0495949677c9a93d69c0 (patch) | |
tree | ba122ec276476323108057b5018c562c85357d1b /src | |
parent | 7bd9e701fa8151f597e7cde11c1e95c527c70047 (diff) | |
download | irssi-142025467eb50b3af7be0495949677c9a93d69c0.zip |
Setting window's prompt didn't check that the window was active -> some
other window's prompt could sometime appear in screen.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@187 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-windows.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 0afcf011..bdcfa916 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -533,6 +533,8 @@ static void window_update_prompt(WINDOW_REC *window) WI_ITEM_REC *item; char *text, *str; + if (window != active_win) return; + item = window->active; if (item != NULL) text = item->name; |