Unclean exit when closing window.
Status: Alpha
Brought to you by:
ankhcraft
Most of the time, when closing the window from the
window manager's close icon, the app does NOT exit
gracefully. Rather, the JVM exits, but Vim still hangs
around in some broken terminal mode, waiting for you to
type :quit to exit.
On the other hand, choosing 'File->Exit' from the menu
works just fine.
Logged In: YES
user_id=443285
After reviewing the menu-handling code, I'm convinced that
my original guess was correct. The problem is that one of
the newer threads is the one handling this close icon
callback, which in turn just tells the gui to close down,
leaving the primordial thread still running. In the menu
situation, the newer thread actually just posts the menu
command to the input buffer as a special type of virtual
'keystroke'. This buffer, of course, is later gobbled by
the primordial thread.
With the way that Vim's logic works, it'll much easier to
just have the newer thread produce something that is then
consumed by the primordial thread in order to exit.
Assuming, of course, that this is the only problem here.
(knock on wood)
Logged In: YES
user_id=443285
This occasionally still happens, and is likely related to
concurrency issues when doing something that requires a
repaint, and then exiting before the repaint is finished....
etc. This does need to be fixed, but is low priority right now.