diff options
| author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2026-01-15 06:02:51 +0200 |
|---|---|---|
| committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2026-01-15 06:04:36 +0200 |
| commit | 69cdf5c0f584617ef57a7168a64ee52f64451b12 (patch) | |
| tree | 254c03d2b168b2c9ca95fb94125db456963e4671 /indra/llui/llkeywords.cpp | |
| parent | f1f89b2a21468a9a6f90bfd77a5dfcbcb0b3c0c6 (diff) | |
#5278 Skip per-char scan when highlighting is disabled
Diffstat (limited to 'indra/llui/llkeywords.cpp')
| -rw-r--r-- | indra/llui/llkeywords.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/llkeywords.cpp b/indra/llui/llkeywords.cpp index 8c34e4ab9c..bbcb45f100 100644 --- a/indra/llui/llkeywords.cpp +++ b/indra/llui/llkeywords.cpp @@ -577,9 +577,9 @@ void LLKeywords::collectSegmentOps(segment_ops_t& ops, const LLWString& wtext, b // Check if syntax highlighting is disabled if (disable_syntax_highlighting) { - if (*cur && *cur != '\n') + while (*cur && *cur != '\n') { - cur++; + ++cur; } continue; // skip processing any further syntax highlighting } |
