typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
12 stars 0 forks source link

Broken jump from click with first line indent and Cyrillic #371

Open laurmaedje opened 3 months ago

laurmaedje commented 3 months ago

Description

Clicking somewhere in the text below jumps to the end of the document.

#set text(font: "Times New Roman", lang: "ua")
#set par(first-line-indent: 2.5em) 

Start of document

На сьогодні шоломи віртуальної реальності є напрямком руху пристроїв, що стрімко розвивається і все більше приваблює увагу користувачів. Виробники активно проводять дослідження та ведуть розробку нових технологій для введення інноваційного функціоналу або ж покращення існуючого.

End of the document.

I believe the problem is that the first line indent accidentally shifts the offsets by one, such that they end up between the 2 byte Cyrllic codepoints. If that's indeed the problem, https://github.com/typst/typst/pull/4301 has already fixed it in the compiler. But we'll need to check that. Moreover, we should check why it jumps to the end instead of not jumping at all.

Reproduction URL

No response

Browsers

No response

OS

No response