Files
neovim/runtime
Sean Dewar 315858bf67 fix(termdebug): handle exiting during startup properly (#16790)
s:EndTermDebug should only be called when exiting if the debugger started
without error, otherwise the plugin breaks.

Vim handles this by using job_setoptions to set the on_exit callback to
s:EndTermDebug after startup succeeds. However, Nvim does not have such
functionality; instead; use s:starting to mimic this behaviour.

Also, introduce s:running to fix s:CheckGdbRunning; it did not work correctly
due to the "[Process exited X]" message keeping the job's channel alive (though
the stream is closed). This means nvim_get_chan_info cannot be used to check if
the debugger has exited, as it may still return a non-empty dict.
2022-03-20 10:10:01 +00:00
..
2021-05-01 14:22:52 -04:00
2022-03-20 10:48:10 +01:00
2022-03-20 10:48:10 +01:00
2022-03-20 10:48:10 +01:00
2021-09-13 16:33:41 +02:00
2022-03-17 13:21:24 +08:00
2021-05-01 22:29:03 -04:00
2021-11-17 10:02:59 +01:00
2014-12-19 15:28:49 -05:00
2021-03-09 19:21:26 +01:00
2022-03-20 10:48:10 +01:00
2021-11-27 19:39:42 +01:00
2019-07-29 20:50:07 +02:00
2021-04-27 09:21:32 -04:00
2019-07-29 20:50:07 +02:00
2021-05-01 22:29:03 -04:00
2021-12-25 11:31:54 +08:00
2021-05-01 22:29:02 -04:00