Skip to content

Commit c808056

Browse files
committed
selection: Selection
1 parent d0ff519 commit c808056

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib_src/misc/blocks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// TODO: docstrings
33

44
import { forLines } from "./scopes"
5-
import { TextEditor } from "atom"
5+
import { TextEditor, Selection } from "atom"
66

77
export function getLine(editor: TextEditor, l) {
88
return {
@@ -86,7 +86,7 @@ function getRange(editor: TextEditor, row) {
8686
}
8787
}
8888

89-
function getSelection(editor: TextEditor, selection) {
89+
function getSelection(editor: TextEditor, selection: Selection) {
9090
const { start, end } = selection.getBufferRange()
9191
const range = [
9292
[start.row, start.column],
@@ -103,7 +103,7 @@ function getSelection(editor: TextEditor, selection) {
103103
return range
104104
}
105105

106-
export function moveNext(editor: TextEditor, selection, range) {
106+
export function moveNext(editor: TextEditor, selection: Selection, range) {
107107
// Ensure enough room at the end of the buffer
108108
const row = range[1][0]
109109
let last

0 commit comments

Comments
 (0)