CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
504 stars 74 forks source link

🐞 Font of texts that are not "loaded" in the view are not changing until manual update #190

Closed Cubik65536 closed 1 year ago

Cubik65536 commented 1 year ago

Description

When I use + - to decrease the font size of editor text, texts that are not "loaded" in the view (texts that are not displayed) remains the bigger one. Scroll down and manually "load" the text will resize those texts.

To Reproduce

  1. Open CodeEdit
  2. Open a file
  3. Use + + to increase font size (make sure to make the text significantly bigger, press the shortcut MULTIPLE times)
  4. Use + - to decrease font size
  5. Bug triggered

(See video)

Expected Behavior

When we resize the font, all the text's font size should be changes.

Version Information

CodeEditTextView: 0.6.3 (CodeEdit 491f5b4) macOS: Ventura 13.4 (22F66) Xcode: Version 14.3 (14E222b)

Additional Context

N/A

Screenshots

https://github.com/CodeEditApp/CodeEditTextView/assets/72877496/eaa84190-b0c0-4e57-8f98-62627dade8d7