Skip to content

Commit 31d32ed

Browse files
authored
Update packages/cursorless-engine/src/processTargets/targets/util/insertionRemovalBehaviors/getSmartRemovalTarget.ts
1 parent 1eca55c commit 31d32ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cursorless-engine/src/processTargets/targets/util/insertionRemovalBehaviors/getSmartRemovalTarget.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ function isLine(document: TextDocument, contentRange: Range): boolean {
4949
);
5050
}
5151

52+
/**
53+
* Returns whether the given content range is a paragraph (a series of whole lines bounded by whitespace or empty lines on each side).
54+
*/
5255
function isParagraph(document: TextDocument, contentRange: Range): boolean {
5356
const { start, end } = contentRange;
5457
return (

0 commit comments

Comments
 (0)