Skip to content

Commit

Permalink
Add a type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Nov 5, 2024
1 parent 9415adc commit 75aa31c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {EditorState, StateCommand, EditorSelection, SelectionRange,
ChangeSpec, Transaction, CharCategory,
StateEffect, ChangeSpec, Transaction, CharCategory,
findClusterBreak, Text, Line, countColumn} from "@codemirror/state"
import {EditorView, Command, Direction, KeyBinding} from "@codemirror/view"
import {syntaxTree, IndentContext, getIndentUnit, indentUnit, indentString,
Expand Down Expand Up @@ -218,7 +218,7 @@ function cursorByPage(view: EditorView, forward: boolean) {
: rangeEnd(range, forward)
})
if (selection.eq(state.selection)) return false
let effect
let effect: StateEffect<any> | undefined
if (page.selfScroll) {
let startPos = view.coordsAtPos(state.selection.main.head)
let scrollRect = view.scrollDOM.getBoundingClientRect()
Expand Down

0 comments on commit 75aa31c

Please sign in to comment.