comparison src/os_win32.c @ 31287:fa309d9af73c v9.0.0977

patch 9.0.0977: it is not easy to see what client-server commands are doing Commit: https://github.com/vim/vim/commit/4c5678ff0c376661d4a8183a5a074a1203413b9d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 30 18:12:19 2022 +0000 patch 9.0.0977: it is not easy to see what client-server commands are doing Problem: It is not easy to see what client-server commands are doing. Solution: Add channel log messages if ch_log() is available. Move the channel logging and make it available with the +eval feature.
author Bram Moolenaar <Bram@vim.org>
date Wed, 30 Nov 2022 19:15:10 +0100
parents d8e7d725a666
children b9a4699d6a35
comparison
equal deleted inserted replaced
31286:33c4af586833 31287:fa309d9af73c
2220 while (len < maxlen && typeaheadlen > 0) 2220 while (len < maxlen && typeaheadlen > 0)
2221 { 2221 {
2222 buf[len++] = typeahead[0]; 2222 buf[len++] = typeahead[0];
2223 mch_memmove(typeahead, typeahead + 1, --typeaheadlen); 2223 mch_memmove(typeahead, typeahead + 1, --typeaheadlen);
2224 } 2224 }
2225 # ifdef FEAT_JOB_CHANNEL 2225 # ifdef FEAT_EVAL
2226 if (len > 0) 2226 if (len > 0)
2227 { 2227 {
2228 buf[len] = NUL; 2228 buf[len] = NUL;
2229 ch_log(NULL, "raw key input: \"%s\"", buf); 2229 ch_log(NULL, "raw key input: \"%s\"", buf);
2230 } 2230 }
4921 { 4921 {
4922 int x = 0; 4922 int x = 0;
4923 int tmode = cur_tmode; 4923 int tmode = cur_tmode;
4924 WCHAR szShellTitle[512]; 4924 WCHAR szShellTitle[512];
4925 4925
4926 #ifdef FEAT_JOB_CHANNEL 4926 #ifdef FEAT_EVAL
4927 ch_log(NULL, "executing shell command: %s", cmd); 4927 ch_log(NULL, "executing shell command: %s", cmd);
4928 #endif 4928 #endif
4929 // Change the title to reflect that we are in a subshell. 4929 // Change the title to reflect that we are in a subshell.
4930 if (GetConsoleTitleW(szShellTitle, ARRAY_LENGTH(szShellTitle) - 4) > 0) 4930 if (GetConsoleTitleW(szShellTitle, ARRAY_LENGTH(szShellTitle) - 4) > 0)
4931 { 4931 {