@@ -28,14 +28,14 @@ module.exports =
28
28
29
29
eval : ({move, cell}= {}) ->
30
30
{editor , mod , edpath } = @ _currentContext ()
31
- selector = if cell? then cells else blocks
31
+ codeSelector = if cell? then cells else blocks
32
32
# global options
33
33
resultsDisplayMode = atom .config .get (' julia-client.uiOptions.resultsDisplayMode' )
34
34
errorInRepl = atom .config .get (' julia-client.uiOptions.errorInRepl' )
35
35
scrollToResult = atom .config .get (' julia-client.uiOptions.scrollToResult' )
36
36
37
- Promise .all selector .get (editor).map ({range, line, text, selection}) =>
38
- selector .moveNext editor, selection, range if move
37
+ Promise .all codeSelector .get (editor).map ({range, line, text, selection}) =>
38
+ codeSelector .moveNext editor, selection, range if move
39
39
[[start], [end ]] = range
40
40
@ink .highlight editor, start, end
41
41
rtype = if cell? then " block" else resultsDisplayMode
@@ -127,8 +127,7 @@ module.exports =
127
127
if dirEl
128
128
pathEl = dirEl .querySelector (' [data-path]' )
129
129
if pathEl
130
- path = pathEl .dataset .path
131
- return path
130
+ return pathEl .dataset .path
132
131
# invoked from normal command usage
133
132
file = client .editorPath (atom .workspace .getCenter ().getActiveTextEditor ())
134
133
if file
0 commit comments