mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user