diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-05 14:27:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-05 14:27:24 +0200 |
commit | 86394aa9720c5e087d85831e42d44e042987fbc0 (patch) | |
tree | 853c38b28ea57594f1daec276c9fcc2b94c08bf1 /src/edit.c | |
parent | cf8aa6448b3520905bea528ea8ad6533cbef288d (diff) | |
download | vim-git-86394aa9720c5e087d85831e42d44e042987fbc0.tar.gz |
patch 8.2.1595: cannot easily see what Vim sends to the terminalv8.2.1595
Problem: Cannot easily see what Vim sends to the terminal.
Solution: Write output to the channel log if it contains terminal control
sequences. Avoid warnings for tputs() argument.
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index bc74f44bb..41154389e 100644 --- a/src/edit.c +++ b/src/edit.c @@ -315,6 +315,9 @@ edit( #endif if (!p_ek) { +#ifdef FEAT_JOB_CHANNEL + ch_log_output = TRUE; +#endif // Disable bracketed paste mode, we won't recognize the escape // sequences. out_str(T_BD); @@ -3724,6 +3727,9 @@ ins_esc( #endif if (!p_ek) { +#ifdef FEAT_JOB_CHANNEL + ch_log_output = TRUE; +#endif // Re-enable bracketed paste mode. out_str(T_BE); |