comparison src/normal.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 afa3080a96ae
children 6941d3205be9
comparison
equal deleted inserted replaced
22090:a6f58b8aa1af 22091:9bb1c984c4da
895 if (lang && curbuf->b_p_iminsert == B_IMODE_IM) 895 if (lang && curbuf->b_p_iminsert == B_IMODE_IM)
896 im_set_active(TRUE); 896 im_set_active(TRUE);
897 #endif 897 #endif
898 if ((State & INSERT) && !p_ek) 898 if ((State & INSERT) && !p_ek)
899 { 899 {
900 #ifdef FEAT_JOB_CHANNEL
901 ch_log_output = TRUE;
902 #endif
900 // Disable bracketed paste and modifyOtherKeys here, we won't 903 // Disable bracketed paste and modifyOtherKeys here, we won't
901 // recognize the escape sequences with 'esckeys' off. 904 // recognize the escape sequences with 'esckeys' off.
902 out_str(T_BD); 905 out_str(T_BD);
903 out_str(T_CTE); 906 out_str(T_CTE);
904 } 907 }
905 908
906 *cp = plain_vgetc(); 909 *cp = plain_vgetc();
907 910
908 if ((State & INSERT) && !p_ek) 911 if ((State & INSERT) && !p_ek)
909 { 912 {
913 #ifdef FEAT_JOB_CHANNEL
914 ch_log_output = TRUE;
915 #endif
910 // Re-enable bracketed paste mode and modifyOtherKeys 916 // Re-enable bracketed paste mode and modifyOtherKeys
911 out_str(T_BE); 917 out_str(T_BE);
912 out_str(T_CTI); 918 out_str(T_CTI);
913 } 919 }
914 920