diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2020-04-29 00:16:48 +0200 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2020-04-29 00:16:48 +0200 |
commit | 9dfb231e00311c6e9c6fa0df75714c38314ed8cd (patch) | |
tree | ac3f99ffb63e8d4248e4ca75c9aa34ef33a13667 /scene/gui | |
parent | 75e4ccc00e0741db9bdfe3d0f0422afe796a0844 (diff) |
Remove unneccessary increment in TextEdit
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 5 |
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; } |