yeah, but it still calls `replaceText` every time ...
# tornadofx
a
yeah, but it still calls
replaceText
every time (when typing a letter, etc.) which is probably not ideal because it causes recomputation of things like syntax highlighting. This is probably better:
Copy code
viewModel.programCodeProperty.onChange {
            if (it != inputArea.text) {
                inputArea.replaceText(it)
            }
        }