Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
11671:3b498e41d760 | 11672:3c6cc2f24645 |
---|---|
2655 if (msg == NULL) | 2655 if (msg == NULL) |
2656 /* JSON or JS mode: re-encode the message. */ | 2656 /* JSON or JS mode: re-encode the message. */ |
2657 msg = json_encode(listtv, ch_mode); | 2657 msg = json_encode(listtv, ch_mode); |
2658 if (msg != NULL) | 2658 if (msg != NULL) |
2659 { | 2659 { |
2660 #ifdef FEAT_TERMINAL | |
2660 if (buffer->b_term != NULL) | 2661 if (buffer->b_term != NULL) |
2661 write_to_term(buffer, msg, channel); | 2662 write_to_term(buffer, msg, channel); |
2662 else | 2663 else |
2664 #endif | |
2663 append_to_buffer(buffer, msg, channel, part); | 2665 append_to_buffer(buffer, msg, channel, part); |
2664 } | 2666 } |
2665 } | 2667 } |
2666 | 2668 |
2667 if (callback != NULL) | 2669 if (callback != NULL) |