summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2020-04-29 00:16:48 +0200
committerTomasz Chabora <kobewi4e@gmail.com>2020-04-29 00:16:48 +0200
commit9dfb231e00311c6e9c6fa0df75714c38314ed8cd (patch)
treeac3f99ffb63e8d4248e4ca75c9aa34ef33a13667 /scene/gui
parent75e4ccc00e0741db9bdfe3d0f0422afe796a0844 (diff)
Remove unneccessary increment in TextEdit
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp5
1 files changed, 0 insertions, 5 deletions
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;
}