Merge pull request #27123 from overleaf/ae-goto-scroll-select-text

Highlight double-clicked word when syncing position from PDF to code

GitOrigin-RevId: da120af9dec203346cb85c6aa7e403f4e585c748
This commit is contained in:
Alf Eaton
2025-07-29 08:05:51 +00:00
committed by Copybot
parent a689d03b41
commit 9958ffdf68
4 changed files with 29 additions and 13 deletions
@@ -3,7 +3,7 @@ import { Text } from '@codemirror/state'
export const findValidPosition = (
doc: Text,
lineNumber: number, // 1-indexed
columnNumber: number // 0-indexed
columnNumber = 0 // 0-indexed
): number => {
const lines = doc.lines