From 23684c982e813a532a369ae97c53bdd4602a13d7 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 13 Apr 2025 22:23:35 +0100 Subject: [PATCH] Add comment --- .../sync-client/src/file-operations/filesystem-operations.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/sync-client/src/file-operations/filesystem-operations.ts b/frontend/sync-client/src/file-operations/filesystem-operations.ts index 175490d..4caf538 100644 --- a/frontend/sync-client/src/file-operations/filesystem-operations.ts +++ b/frontend/sync-client/src/file-operations/filesystem-operations.ts @@ -2,6 +2,8 @@ import type { RelativePath } from "../persistence/database"; export interface Cursor { id: number; + + /// The character position is the index of the character in the text where the text lines are separated by '\n' new line character even if the actual text uses different line endings. characterPosition: number; }