diff src/eval.c @ 24818:fcab26a7fd4d v8.2.2947

patch 8.2.2947: build failure without the channel feature Commit: https://github.com/vim/vim/commit/f5bfa8faa7bbe025c10148d37e8b47217a430a3b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 6 12:07:54 2021 +0200 patch 8.2.2947: build failure without the channel feature Problem: Build failure without the channel feature. Solution: Add back #ifdef. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Jun 2021 12:15:04 +0200
parents 8fdf839af1f4
children 3c8bd1d392d1
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -5059,6 +5059,7 @@ echo_string_core(
 
 	case VAR_JOB:
 	case VAR_CHANNEL:
+#ifdef FEAT_JOB_CHANNEL
 	    *tofree = NULL;
 	    r = tv->v_type == VAR_JOB ? job_to_string_buf(tv, numbuf)
 					   : channel_to_string_buf(tv, numbuf);
@@ -5067,6 +5068,7 @@ echo_string_core(
 		*tofree = string_quote(r, FALSE);
 		r = *tofree;
 	    }
+#endif
 	    break;
 
 	case VAR_INSTR: