Skip to content

Commit 2ed6611

Browse files
committed
editor: Preserve indentation of the previous line
Refs #663.
1 parent 51d7023 commit 2ed6611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReText/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def documentIndentLess(document, cursor, globalSettings=globalSettings):
148148
class ReTextEdit(QTextEdit):
149149
resized = pyqtSignal(QRect)
150150
scrollLimitReached = pyqtSignal(QWheelEvent)
151-
returnBlockPattern = re.compile("^[\\s]*([*>-]|\\d+\\.) ")
151+
returnBlockPattern = re.compile("^[\\s]*([*>-]|\\d+\\.)? ")
152152
orderedListPattern = re.compile("^([\\s]*)(\\d+)\\. $")
153153
wordPattern = re.compile(r"\w+")
154154
nonAlphaNumPattern = re.compile(r"\W")

0 commit comments

Comments
 (0)