Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix typo in scripter dedent

stuffins lastname6685687bd691
diff --git a/plugins/python/scripter/ui_scripter/editor/pythoneditor.py b/plugins/python/scripter/ui_scripter/editor/pythoneditor.py
index ff8bb81c33..09aa56ef61 100644
--- a/plugins/python/scripter/ui_scripter/editor/pythoneditor.py
+++ b/plugins/python/scripter/ui_scripter/editor/pythoneditor.py
@@ -251,7 +251,7 @@ class CodeEditor(QPlainTextEdit):
for _ in range(self.indent_width):
cursor.movePosition(QTextCursor.MoveOperation.StartOfLine)
- cursor.movePosition(QTextCursor.MoveOperation.Right, QTextCursor.ModeMode.KeepAnchor)
+ cursor.movePosition(QTextCursor.MoveOperation.Right, QTextCursor.MoveMode.KeepAnchor)
if cursor.selectedText() == " ": # need to test each char
cursor.removeSelectedText()
else: