Explorar o código

Remove unneccessary increment in TextEdit

Tomasz Chabora %!s(int64=5) %!d(string=hai) anos
pai
achega
9dfb231e00
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      scene/gui/text_edit.cpp

+ 0 - 5
scene/gui/text_edit.cpp

@@ -1064,11 +1064,6 @@ void TextEdit::_notification(int p_what) {
 								break;
 								break;
 							}
 							}
 
 
-							// re-adjust if we went backwards.
-							if (color != previous_color && !is_whitespace) {
-								characters++;
-							}
-
 							if (str[j] == '\t') {
 							if (str[j] == '\t') {
 								tabs += minimap_tab_size;
 								tabs += minimap_tab_size;
 							}
 							}