Merge pull request #38314 from KoBeWi/dead_increment

Remove unneccessary increment in TextEdit
This commit is contained in:
Rémi Verschelde 2020-04-29 08:55:56 +02:00 committed by GitHub
commit e23bd5a1cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}