Skip to content

Commit f6da182

Browse files
committed
- Fixes todo indentations
1 parent 2729dd7 commit f6da182

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

FSNotes/Helpers/TextFormatter.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,9 +879,11 @@ public class TextFormatter {
879879

880880
self.textView.undoManager?.beginUndoGrouping()
881881
self.storage.replaceCharacters(in: NSRange(location: location, length: 1), with: (attributedText?.attributedSubstring(from: NSRange(0..<1)))!)
882+
882883
self.textView.undoManager?.endUndoGrouping()
883884

884885
guard let paragraph = getParagraphRange(for: location) else { return }
886+
self.storage.updateParagraphStyle(range: paragraph)
885887

886888
if todoAttr == 0 {
887889
self.storage.addAttribute(.strikethroughStyle, value: 1, range: paragraph)

0 commit comments

Comments
 (0)