Fix 'Highlight.LengthBefore' when strings have non-ASCII characters.

[GB.EVAL]
* BUG: Fix 'Highlight.LengthBefore' when strings have non-ASCII characters.
This commit is contained in:
Benoît Minisini 2023-11-03 17:53:54 +01:00
parent 7179b5f18d
commit e1fd4f9e78

View file

@ -397,7 +397,6 @@ static void analyze(EVAL_ANALYZE *result)
next_type = type;
get_symbol(*pattern, &symbol, &len);
len_before += len;
space_before = space_after;
space_after = FALSE;
@ -574,6 +573,7 @@ static void analyze(EVAL_ANALYZE *result)
{
add_result(result, symbol, len);
add_data(RT_OPERATOR, len);
len_before += len;
/*for(;;)
{
@ -636,9 +636,10 @@ static void analyze(EVAL_ANALYZE *result)
{
add_result_char(result, '"');
len += 2;
len_before += 2;
}
len_before += len;
if (EVAL->rewrite)
{
if (type == RT_STRING)