mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-14 00:44:34 +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
|
# Focus mode
|
||||||
if self.highlighter and settings.textEditor["focusMode"]:
|
if self.highlighter and settings.textEditor["focusMode"]:
|
||||||
if self._lastCursorPosition:
|
if self._lastCursorPosition:
|
||||||
self.highlighter.onHighlightBlockAtPosition(
|
block = self.document().findBlock(self._lastCursorPosition)
|
||||||
self._lastCursorPosition)
|
self.highlighter.rehighlightBlock(block)
|
||||||
self._lastCursorPosition = self.textCursor().position()
|
self._lastCursorPosition = self.textCursor().position()
|
||||||
self.highlighter.onHighlightBlockAtPosition(
|
block = self.document().findBlock(self._lastCursorPosition)
|
||||||
self._lastCursorPosition)
|
self.highlighter.rehighlightBlock(block)
|
||||||
|
|
||||||
def centerCursor(self, force=False):
|
def centerCursor(self, force=False):
|
||||||
cursor = self.cursorRect()
|
cursor = self.cursorRect()
|
||||||
|
|
Loading…
Reference in a new issue