From d2fac8ba8463743088b83e270a58190c4520cda3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 14 Sep 2023 16:51:53 +1000 Subject: [PATCH] Cleanup: remove redundant text access (missed in review) --- source/blender/editors/space_text/text_ops.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/blender/editors/space_text/text_ops.cc b/source/blender/editors/space_text/text_ops.cc index 31176c57fac..d2ae7b557f0 100644 --- a/source/blender/editors/space_text/text_ops.cc +++ b/source/blender/editors/space_text/text_ops.cc @@ -3660,9 +3660,8 @@ static int text_insert_invoke(bContext *C, wmOperator *op, const wmEvent *event) false); } } - Text *text = CTX_data_edit_text(C); - txt_add_char(text, auto_close_match); - txt_move_left(text, false); + txt_add_char(st->text, auto_close_match); + txt_move_left(st->text, false); /* If there was a selection, restore it. */ if (auto_close_select.sell) {