Skip to content

Commit 9725270

Browse files
committed
Fix selection tests
1 parent 7f1d906 commit 9725270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ function listStyle(textarea: HTMLTextAreaElement, style: StyleArgs): SelectionRa
692692
selectionEnd = selectionStart
693693
} else {
694694
selectionStart = Math.max(selectionStart - prefix(0).length, 0)
695-
selectionEnd = selectionEnd + totalPrefixLength
695+
selectionEnd = selectionEnd - totalPrefixLength
696696
}
697697
return {text: undoResult.text, selectionStart, selectionEnd}
698698
}

0 commit comments

Comments
 (0)