Skip to content

Commit dceadfc

Browse files
committed
refactor: - Check ListItem's indentation and listMarker in identicalTo()
1 parent b8b1e0b commit dceadfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Task/ListItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class ListItem {
138138
// Note: taskLocation changes every time a line is added or deleted before
139139
// any of the tasks in a file. This does mean that redrawing of tasks blocks
140140
// happens more often than is ideal.
141-
const args: Array<keyof ListItem> = ['originalMarkdown', 'description', 'statusCharacter'];
141+
const args: Array<keyof ListItem> = ['description', 'statusCharacter', 'indentation', 'listMarker'];
142142

143143
for (const el of args) {
144144
if (this[el]?.toString() !== other[el]?.toString()) return false;

0 commit comments

Comments
 (0)