Skip to content

Commit a66b3f6

Browse files
committed
Correct assignment of first_real
1 parent 263ec22 commit a66b3f6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/display/text_runs.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,6 @@ impl TextDisplay {
294294
}
295295

296296
if is_real(script) {
297-
if first_real.is_none() {
298-
first_real = Some(c);
299-
}
300297
if script != input.script {
301298
require_break |= is_real(input.script);
302299
}
@@ -342,6 +339,12 @@ impl TextDisplay {
342339
}
343340
}
344341

342+
if is_real(script) {
343+
if first_real.is_none() {
344+
first_real = Some(c);
345+
}
346+
}
347+
345348
if let Some(token) = next_token.as_ref()
346349
&& to_usize(token.start) == index
347350
{

0 commit comments

Comments
 (0)