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); }