Use regular block format function for single block

This commit is contained in:
Veronica Berglyd Olsen
2024-02-10 18:26:18 +01:00
parent 1c3b252b6b
commit 2f20266602
+1 -1
View File
@@ -1774,7 +1774,7 @@ class GuiDocEditor(QPlainTextEdit):
""" """
cursor = self.textCursor() cursor = self.textCursor()
blocks = self._selectedBlocks(cursor) blocks = self._selectedBlocks(cursor)
if len(blocks) < 1: if len(blocks) < 2:
return self._formatBlock(action) return self._formatBlock(action)
toggle = True toggle = True