Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
22090:a6f58b8aa1af | 22091:9bb1c984c4da |
---|---|
313 revins_legal = 0; | 313 revins_legal = 0; |
314 revins_scol = -1; | 314 revins_scol = -1; |
315 #endif | 315 #endif |
316 if (!p_ek) | 316 if (!p_ek) |
317 { | 317 { |
318 #ifdef FEAT_JOB_CHANNEL | |
319 ch_log_output = TRUE; | |
320 #endif | |
318 // Disable bracketed paste mode, we won't recognize the escape | 321 // Disable bracketed paste mode, we won't recognize the escape |
319 // sequences. | 322 // sequences. |
320 out_str(T_BD); | 323 out_str(T_BD); |
321 | 324 |
322 // Disable modifyOtherKeys, keys with modifiers would cause exiting | 325 // Disable modifyOtherKeys, keys with modifiers would cause exiting |
3722 #ifdef CURSOR_SHAPE | 3725 #ifdef CURSOR_SHAPE |
3723 ui_cursor_shape(); // may show different cursor shape | 3726 ui_cursor_shape(); // may show different cursor shape |
3724 #endif | 3727 #endif |
3725 if (!p_ek) | 3728 if (!p_ek) |
3726 { | 3729 { |
3730 #ifdef FEAT_JOB_CHANNEL | |
3731 ch_log_output = TRUE; | |
3732 #endif | |
3727 // Re-enable bracketed paste mode. | 3733 // Re-enable bracketed paste mode. |
3728 out_str(T_BE); | 3734 out_str(T_BE); |
3729 | 3735 |
3730 // Re-enable modifyOtherKeys. | 3736 // Re-enable modifyOtherKeys. |
3731 out_str(T_CTI); | 3737 out_str(T_CTI); |