From 8696c504c674a17e7262d3522eb94f087022617a Mon Sep 17 00:00:00 2001 From: Michal Rus Date: Fri, 20 May 2016 17:43:17 +0200 Subject: [PATCH] Use text_buffer_size in print_evaluate for the buffer size (#260) --- src/common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.cc b/src/common.cc index de82948b..5f6310bd 100644 --- a/src/common.cc +++ b/src/common.cc @@ -556,7 +556,7 @@ void print_cached(struct text_object *obj, char *p, int p_max_size) void print_evaluate(struct text_object *obj, char *p, int p_max_size) { - std::vector buf(max_user_text.get(*state)); + std::vector buf(text_buffer_size.get(*state)); evaluate(obj->data.s, &buf[0], buf.size()); evaluate(&buf[0], p, p_max_size); }