1
0
forked from aniani/vim

patch 8.0.0719: build failure without +terminal feature

Problem:    Build failure without +terminal feature.
Solution:   Add #ifdefs.
This commit is contained in:
Bram Moolenaar
2017-07-16 14:04:29 +02:00
parent cb8bbe9bf3
commit c0aa482a5a
3 changed files with 14 additions and 4 deletions

View File

@@ -2657,9 +2657,11 @@ may_invoke_callback(channel_T *channel, ch_part_T part)
msg = json_encode(listtv, ch_mode);
if (msg != NULL)
{
#ifdef FEAT_TERMINAL
if (buffer->b_term != NULL)
write_to_term(buffer, msg, channel);
else
#endif
append_to_buffer(buffer, msg, channel, part);
}
}