Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-01-16 08:05:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-16 08:05:01 +0400
commitd0e65f2bf4d5e2140752c0695d19507ffee1ebd8 (patch)
tree419a3c76aecdd26113b8649f64e3198fc23b403e /source/blender/editors/space_text/text_format_lua.c
parent6fd5645d56b9e2d34a683fa21139d975c8be02aa (diff)
text syntax highlighting: don't use utf8 stepping if we know the text is ascii
Diffstat (limited to 'source/blender/editors/space_text/text_format_lua.c')
-rw-r--r--source/blender/editors/space_text/text_format_lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_text/text_format_lua.c b/source/blender/editors/space_text/text_format_lua.c
index bf3ab17456b..6c72e043930 100644
--- a/source/blender/editors/space_text/text_format_lua.c
+++ b/source/blender/editors/space_text/text_format_lua.c
@@ -258,7 +258,7 @@ static void txtfmt_lua_format_line(SpaceText *st, TextLine *line, const int do_n
/* Booleans */
else if (prev != FMT_TYPE_DEFAULT && (i = txtfmt_lua_find_bool(str)) != -1) {
if (i > 0) {
- text_format_fill(&str, &fmt, FMT_TYPE_NUMERAL, i);
+ text_format_fill_ascii(&str, &fmt, FMT_TYPE_NUMERAL, i);
}
else {
str += BLI_str_utf8_size_safe(str) - 1;
@@ -282,7 +282,7 @@ static void txtfmt_lua_format_line(SpaceText *st, TextLine *line, const int do_n
else if ((i = txtfmt_lua_find_keyword(str)) != -1) prev = FMT_TYPE_KEYWORD;
if (i > 0) {
- text_format_fill(&str, &fmt, prev, i);
+ text_format_fill_ascii(&str, &fmt, prev, i);
}
else {
str += BLI_str_utf8_size_safe(str) - 1;