Keep the editor responsive to user input by spinning the event loop after every line is re-highlighted.

This commit is contained in:
Kovid Goyal 2014-02-19 16:28:14 +05:30
parent 3c0a6499a3
commit f12d0cf155

View File

@ -65,4 +65,6 @@ class SyntaxHighlighter(QSyntaxHighlighter):
except:
import traceback
traceback.print_exc()
finally:
QApplication.processEvents() # Try to keep the editor responsive to user input