diff --git a/packages/common/src/types/TextLine.ts b/packages/common/src/types/TextLine.ts index 056c2f1286..949b871914 100644 --- a/packages/common/src/types/TextLine.ts +++ b/packages/common/src/types/TextLine.ts @@ -29,7 +29,7 @@ export interface TextLine { /** * The trimmed range, which excludes leading and trailing whitespace (`/\s/`). - * **Note** that if a line is all whitespace this is undefined so the trimmed range can never be empty. + * **Note:** if a line is all whitespace, the `rangeTrimmed` is undefined. Thus, a trimmed range can never be empty. */ readonly rangeTrimmed: Range | undefined; diff --git a/packages/cursorless-engine/src/processTargets/targets/DestinationImpl.ts b/packages/cursorless-engine/src/processTargets/targets/DestinationImpl.ts index 8934347168..a76fe7836a 100644 --- a/packages/cursorless-engine/src/processTargets/targets/DestinationImpl.ts +++ b/packages/cursorless-engine/src/processTargets/targets/DestinationImpl.ts @@ -122,7 +122,7 @@ export class DestinationImpl implements Destination { ? line.rangeTrimmed?.start ?? line.range.start : line.rangeTrimmed?.end ?? line.range.end; - // Use the full line with including indentation and trailing whitespaces + // Use the full line, including indentation and trailing whitespaces if (insertionPosition.isEqual(trimmedPosition)) { return this.isBefore ? line.range.start : line.range.end; }