typstudio icon indicating copy to clipboard operation
typstudio copied to clipboard

Crash while editing a show rule

Open UserTeemu opened this issue 6 months ago • 0 comments

Environment

  • Typstudio v0.1.0-dev.32
  • Windows 10
  • Typst CLI is also installed

Steps to reproduce

  1. Open Typstudio and create a project with the following main.typ file:
#let kilometer = math.upright("km")
#let hour = math.upright("h")

#show math.equation: it => {
    it.body.fields()
}

The plane is traveling at the velocity of $2 (kilometer)/hour$
  1. Highlight ".fields()" on line 5.
  2. Press backspace.
  3. Press backspace again (to try remove the y).
  4. Crash!

https://github.com/Cubxity/typstudio/assets/20520700/aba38b3c-8df2-4d27-859c-952a3cfdbf04

UserTeemu avatar Dec 16 '23 15:12 UserTeemu