Skip to content

Commit dd2fa9f

Browse files
committed
Add OscServer import for osc evaluation (#225)
1 parent 3106240 commit dd2fa9f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/osc-eval.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ import {Editors} from './editors';
55
import OscServer from './osc-server';
66

77
export function oscEvalSubscriber(tidalRepl: Repl, editors: Editors) {
8-
return (args: {}): void => {
9-
const message = OscServer.asDictionary(args);
8+
return (args: {}): void => {
9+
const message = OscServer.asDictionary(args);
1010

11-
if (message['tab'] !== undefined) {
12-
atom.workspace.getPanes()[0].setActiveItem(atom.workspace.getTextEditors()[message['tab']])
13-
}
11+
if (message['tab'] !== undefined) {
12+
atom.workspace.getPanes()[0].setActiveItem(atom.workspace.getTextEditors()[message['tab']])
13+
}
1414

15-
if (message['row'] && message['column']) {
16-
editors.goTo(message['row'] - 1, message['column'])
17-
}
15+
if (message['row'] && message['column']) {
16+
editors.goTo(message['row'] - 1, message['column'])
17+
}
1818

19-
if (message['type']) {
20-
tidalRepl.eval(message['type'], false);
21-
}
19+
if (message['type']) {
20+
tidalRepl.eval(message['type'], false);
2221
}
22+
}
2323
}

0 commit comments

Comments
 (0)