diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-27 00:35:09 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-12-05 01:45:39 +0100 |
commit | 3aa24042a8f7d591b8091b437fc9cdb03497bc7a (patch) | |
tree | 42aa095f3500f6337cc406a948846823e014a357 /src/nvim/ui_bridge.c | |
parent | a494c999189200c36786f7c453c5c316244da0d1 (diff) | |
download | rneovim-3aa24042a8f7d591b8091b437fc9cdb03497bc7a.tar.gz rneovim-3aa24042a8f7d591b8091b437fc9cdb03497bc7a.tar.bz2 rneovim-3aa24042a8f7d591b8091b437fc9cdb03497bc7a.zip |
tui: dump termcap info if -V3 ('verbose' >= 3)
Get terminal debugging info by starting Nvim with 'verbose' level 3:
nvim -V3log
This is like Vim's `:set termcap`, which was removed in Nvim (and would
be very awkward to restore because of the decoupled UI).
Diffstat (limited to 'src/nvim/ui_bridge.c')
-rw-r--r-- | src/nvim/ui_bridge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ui_bridge.c b/src/nvim/ui_bridge.c index 5585886612..7573fa1653 100644 --- a/src/nvim/ui_bridge.c +++ b/src/nvim/ui_bridge.c @@ -82,6 +82,7 @@ UI *ui_bridge_attach(UI *ui, ui_main_fn ui_main, event_scheduler scheduler) abort(); } + // Suspend the main thread until CONTINUE is called by the UI thread. while (!rv->ready) { uv_cond_wait(&rv->cond, &rv->mutex); } @@ -149,7 +150,7 @@ static void ui_bridge_suspend(UI *b) uv_mutex_lock(&data->mutex); UI_BRIDGE_CALL(b, suspend, 1, b); data->ready = false; - // suspend the main thread until CONTINUE is called by the UI thread + // Suspend the main thread until CONTINUE is called by the UI thread. while (!data->ready) { uv_cond_wait(&data->cond, &data->mutex); } |