Skip to content

Commit 8cd1605

Browse files
committed
cleanup
1 parent 4bd312f commit 8cd1605

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

plugins/editor/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ function editor(app, opts, done){
5151
const anchor = doc.posFromIndex(position);
5252
const head = doc.posFromIndex(position + length);
5353

54-
doc.setSelection(anchor, head, {
55-
scroll: false
56-
});
54+
doc.setSelection(anchor, head, { scroll: false });
5755

5856
const top = codeEditor.charCoords(anchor, 'local').top;
5957
const halfHeight = codeEditor.getScrollerElement().offsetHeight / 2;

src/actions/editor.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ class EditorActions {
66
handleInput(inst) {
77
this.dispatch(inst);
88
}
9-
highlight(position, len) {
10-
this.dispatch({
11-
position: position,
12-
length: len
13-
});
14-
}
9+
1510
syntaxCheck(){
1611
this.dispatch();
1712
}

0 commit comments

Comments
 (0)