Skip to content

Commit 37fe293

Browse files
Rename
1 parent 4baa92e commit 37fe293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function getSmartRemovalTarget(target: Target): Target {
1515
const { document } = editor;
1616
const contentRange = union(target.contentRange, target.prefixRange);
1717

18-
if (!isLine(document, contentRange)) {
18+
if (!isWholeLines(document, contentRange)) {
1919
return new TokenTarget({
2020
editor,
2121
isReversed,
@@ -42,7 +42,7 @@ export function getSmartRemovalTarget(target: Target): Target {
4242
* Returns whether the given content range is a series of line(s) that do not have preceding
4343
* or trailing content (whitespace is OK).
4444
*/
45-
function isLine(document: TextDocument, contentRange: Range): boolean {
45+
function isWholeLines(document: TextDocument, contentRange: Range): boolean {
4646
const start = document.lineAt(contentRange.start).rangeTrimmed?.start;
4747
const end = document.lineAt(contentRange.end).rangeTrimmed?.end;
4848
return (

0 commit comments

Comments
 (0)