Ticket #1490: fix of mult-screen engine.
commit6cfefe7cb768a5c97fd28881c4643563943183e3
authorAndrew Borodin <aborodin@vmail.ru>
Mon, 20 Sep 2010 09:58:17 +0000 (20 13:58 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Mon, 20 Sep 2010 15:44:03 +0000 (20 19:44 +0400)
tree38c93eabe667793e074eba5c76baa1ca4121e7a3
parent7a5302856555311acda359b4b6f0cad28a18b46f
Ticket #1490: fix of mult-screen engine.

Multi-screen engine doesn't handle correctly some cases.
Example:
1. Run mc.
2. Open some file in internal editor.
3. Switch back to the file panels.
4. Open another file in internal editor. As a result, two editors are opened.
5. Close current editor. Now you are in file panels.
6. Run screen list dialog (Meta-`).
6a. The 1st editor is highlighted as current screen. This is wrong.
Current screen is file panels.
6b. Cannot switch to the opened editor in this dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/dialog-switch.c
src/dialog.c