liquid

mogenslund 2019-06-13T04:43:20.003Z

Hi @josip.gracin. Thank you for asking, since I might change it. I cannot remember exactly why I did remove and add the watch each time. I might have been afraid of screen corruption, since the view-handler spawns a new thread and the redraw in some cases also do changes to the editor (e.g if the top-of-window is recalculated), which would trigger a simultaneous redraw. Having two thread doing tty updates at the same time will usually corrupt the screen. I have revisited and improved on concurrency problems once in a while, so maybe my "hack" is not needed anymore. Like you, I cannot see any difference in practice. I will run locally without the add/remove for same time and see if something triggers something unexpected, otherwise I will remove it 🙂