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/option.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/option.c')
-rw-r--r-- | src/nvim/option.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 913d27d508..37c4233142 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -4906,15 +4906,14 @@ showoptions ( vimoption_T **items = xmalloc(sizeof(vimoption_T *) * PARAM_COUNT); - /* Highlight title */ - if (all == 2) - MSG_PUTS_TITLE(_("\n--- Terminal codes ---")); - else if (opt_flags & OPT_GLOBAL) + // Highlight title + if (opt_flags & OPT_GLOBAL) { MSG_PUTS_TITLE(_("\n--- Global option values ---")); - else if (opt_flags & OPT_LOCAL) + } else if (opt_flags & OPT_LOCAL) { MSG_PUTS_TITLE(_("\n--- Local option values ---")); - else + } else { MSG_PUTS_TITLE(_("\n--- Options ---")); + } /* * do the loop two times: |