We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
toggleDocs
1 parent 083f068 commit 849fe86Copy full SHA for 849fe86
lib/runtime/evaluation.coffee
@@ -84,10 +84,11 @@ module.exports =
84
notifications.show "Evaluation Finished"
85
workspace.update()
86
87
- toggleDocs: (word, range) ->
+ toggleDocs: () ->
88
{ editor, mod, edpath } = @_currentContext()
89
+ bufferPosition = editor.getLastCursor().getBufferPosition()
90
# get word without trailing dot accessors at the buffer position
- { word, range } = words.getWordAndRange(editor) unless word? and range?
91
+ { word, range } = words.getWordAndRange(editor, { bufferPosition })
92
range = words.getWordRangeWithoutTrailingDots(word, range, bufferPosition)
93
word = editor.getTextInBufferRange(range)
94
0 commit comments