diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-01-11 22:51:02 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-01-11 22:51:02 +0000 |
commit | 4c389186b5c8bc4823b01ff5a4fa92a91af69525 (patch) | |
tree | eec4c05707dc4a3ba6e67c67ca60f89d7d67df28 /src | |
parent | 7484c8b3739a906c310d8fe89e1413ee80726880 (diff) | |
download | irssi-4c389186b5c8bc4823b01ff5a4fa92a91af69525.zip |
Modify Irssi::UI::Window::command to restore the original active window only if the command executed has not made another one active, bug #403.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4408 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/perl/ui/Window.xs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/perl/ui/Window.xs b/src/perl/ui/Window.xs index f8ef0315..ab52c910 100644 --- a/src/perl/ui/Window.xs +++ b/src/perl/ui/Window.xs @@ -160,7 +160,8 @@ CODE: old = active_win; active_win = window; perl_command(cmd, window->active_server, window->active); - if (g_slist_find(windows, old) != NULL) + if (active_win == window && + g_slist_find(windows, old) != NULL) active_win = old; void |