diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-12 12:46:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-12 12:46:12 +0400 |
commit | d9960dba31cc028392665c3481e145450dc626da (patch) | |
tree | 8af8e002e2824ec4e0c370656523262cd2e967fe /source/blender/editors/space_text/text_format_py.c | |
parent | e84153a91ccd05548fb718eb612dc6155b3873c9 (diff) |
fix own regression in 2.66 [#34610] Text editor: Syntax highlighting freezes
Diffstat (limited to 'source/blender/editors/space_text/text_format_py.c')
-rw-r--r-- | source/blender/editors/space_text/text_format_py.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_text/text_format_py.c b/source/blender/editors/space_text/text_format_py.c index 902d60dcb3e..9562d57041f 100644 --- a/source/blender/editors/space_text/text_format_py.c +++ b/source/blender/editors/space_text/text_format_py.c @@ -233,7 +233,7 @@ static void txtfmt_py_format_line(SpaceText *st, TextLine *line, const int do_ne /* Deal with comments first */ if (*str == '#') { /* fill the remaining line */ - text_format_fill(&str, &fmt, FMT_TYPE_COMMENT, len - (int)(str - fs.buf)); + text_format_fill(&str, &fmt, FMT_TYPE_COMMENT, len - (int)(fmt - line->format)); } else if (*str == '"' || *str == '\'') { /* Strings */ |