fix [#34460] text editor freezes when turning on syntax highlight
authorCampbell Barton <ideasman42@gmail.com>
Wed, 27 Feb 2013 14:19:44 +0000 (14:19 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 27 Feb 2013 14:19:44 +0000 (14:19 +0000)
source/blender/editors/space_text/text_format.c

index a8c2de193c404611ad2a744341c65e2d202c81b1..3c7897200ed10a3dbb621d0f6ca41aef7d84790e 100644 (file)
@@ -157,7 +157,7 @@ void text_format_fill(const char **str_p, char **fmt_p, const char type, const i
                *fmt++ = type;
 
                str += size;
-               i   += size;
+               i   += 1;
        }
 
        str--;