Mercurial > vim
diff src/channel.c @ 11672:3c6cc2f24645 v8.0.0719
patch 8.0.0719: build failure without +terminal feature
commit https://github.com/vim/vim/commit/c0aa482a5add1e1125fd983d62c67a182c76ae24
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 16 14:04:29 2017 +0200
patch 8.0.0719: build failure without +terminal feature
Problem: Build failure without +terminal feature.
Solution: Add #ifdefs.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 16 Jul 2017 14:15:03 +0200 |
parents | 3b2afa2b77b3 |
children | ce434212d682 |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -2657,9 +2657,11 @@ may_invoke_callback(channel_T *channel, 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); } }