From 9dfb231e00311c6e9c6fa0df75714c38314ed8cd Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Wed, 29 Apr 2020 00:16:48 +0200 Subject: Remove unneccessary increment in TextEdit --- scene/gui/text_edit.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'scene/gui') diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index c83ca6f73d..2d63d86048 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1064,11 +1064,6 @@ void TextEdit::_notification(int p_what) { break; } - // re-adjust if we went backwards. - if (color != previous_color && !is_whitespace) { - characters++; - } - if (str[j] == '\t') { tabs += minimap_tab_size; } -- cgit v1.2.3