Mercurial > vim
diff src/edit.c @ 22091:9bb1c984c4da v8.2.1595
patch 8.2.1595: cannot easily see what Vim sends to the terminal
Commit: https://github.com/vim/vim/commit/86394aa9720c5e087d85831e42d44e042987fbc0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 5 14:27:24 2020 +0200
patch 8.2.1595: cannot easily see what Vim sends to the terminal
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Sep 2020 14:30:03 +0200 |
parents | 335365fcbb60 |
children | 2cc0de1e05a6 |
line wrap: on
line diff
--- 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);