Finally found the real cause of bug #78: https://github.com/leo-editor/leo-editor/issues/78
The problem was in the PythonQSyntaxHighlighter class: it does not work *exactly* like QSyntaxHighlighter.
The fix was to call w.seeInsertPoint() in pqsh.reformat_blocks_helper.

Leo build: 20141208082456