mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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.
This commit is contained in:
@@ -897,6 +897,9 @@ getcount:
|
||||
#endif
|
||||
if ((State & INSERT) && !p_ek)
|
||||
{
|
||||
#ifdef FEAT_JOB_CHANNEL
|
||||
ch_log_output = TRUE;
|
||||
#endif
|
||||
// Disable bracketed paste and modifyOtherKeys here, we won't
|
||||
// recognize the escape sequences with 'esckeys' off.
|
||||
out_str(T_BD);
|
||||
@@ -907,6 +910,9 @@ getcount:
|
||||
|
||||
if ((State & INSERT) && !p_ek)
|
||||
{
|
||||
#ifdef FEAT_JOB_CHANNEL
|
||||
ch_log_output = TRUE;
|
||||
#endif
|
||||
// Re-enable bracketed paste mode and modifyOtherKeys
|
||||
out_str(T_BE);
|
||||
out_str(T_CTI);
|
||||
|
Reference in New Issue
Block a user