1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2022-11-30 18:12:19 +00:00
parent a87749e3ea
commit 4c5678ff0c
27 changed files with 341 additions and 257 deletions

View File

@@ -2222,7 +2222,7 @@ theend:
buf[len++] = typeahead[0];
mch_memmove(typeahead, typeahead + 1, --typeaheadlen);
}
# ifdef FEAT_JOB_CHANNEL
# ifdef FEAT_EVAL
if (len > 0)
{
buf[len] = NUL;
@@ -4923,7 +4923,7 @@ mch_call_shell(
int tmode = cur_tmode;
WCHAR szShellTitle[512];
#ifdef FEAT_JOB_CHANNEL
#ifdef FEAT_EVAL
ch_log(NULL, "executing shell command: %s", cmd);
#endif
// Change the title to reflect that we are in a subshell.