mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-17 11:22:28 +12:00
Fixes a bug introduced when fixing #261
This commit is contained in:
parent
d521fc0771
commit
1764baf292
|
@ -177,11 +177,11 @@ class MDEditView(textEditView):
|
|||
# Focus mode
|
||||
if self.highlighter and settings.textEditor["focusMode"]:
|
||||
if self._lastCursorPosition:
|
||||
self.highlighter.onHighlightBlockAtPosition(
|
||||
self._lastCursorPosition)
|
||||
block = self.document().findBlock(self._lastCursorPosition)
|
||||
self.highlighter.rehighlightBlock(block)
|
||||
self._lastCursorPosition = self.textCursor().position()
|
||||
self.highlighter.onHighlightBlockAtPosition(
|
||||
self._lastCursorPosition)
|
||||
block = self.document().findBlock(self._lastCursorPosition)
|
||||
self.highlighter.rehighlightBlock(block)
|
||||
|
||||
def centerCursor(self, force=False):
|
||||
cursor = self.cursorRect()
|
||||
|
|
Loading…
Reference in a new issue