fix: json outline line index
This commit is contained in:
parent
93a97a2f4c
commit
4a332f40e5
1 changed files with 3 additions and 1 deletions
|
|
@ -219,7 +219,9 @@ const { cursor } = useCodemirror(
|
|||
)
|
||||
|
||||
const jumpCursor = (ast: JSONValue | JSONObjectMember) => {
|
||||
cursor.value = convertIndexToLineCh(jsonBodyText.value, ast.start)
|
||||
const pos = convertIndexToLineCh(jsonBodyText.value, ast.start)
|
||||
pos.line--
|
||||
cursor.value = pos
|
||||
}
|
||||
|
||||
const downloadResponse = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue