oracc / nammu

Oracc GUI
GNU General Public License v3.0
12 stars 10 forks source link

Syntax highlighting is called too many times #383

Open giordano opened 5 years ago

giordano commented 5 years ago

We should probably rationalise the calls to SyntaxHighlighter.syntax_highlight(): when a file is opened, it's highlighted several times. All of them comes from runSwingLater(NammuController.initHighlighting). In particular:

It's possible that, e.g., NammuController.openFile itself is calling AtfEditArea.setText, I'm counting the calling places