Skip to content

Commit

Permalink
Save editor before executing commands
Browse files Browse the repository at this point in the history
  • Loading branch information
swr1bm86 committed Apr 5, 2017
1 parent 4dade4a commit f041cde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/idris-controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class IdrisController

getDocsForWord: ({ target }) =>
editor = @getEditor()
@saveFile editor
uri = editor.getURI()
word = Symbol.serializeWord @getWordUnderCursor(editor)

Expand Down Expand Up @@ -370,6 +371,7 @@ class IdrisController

printDefinition: ({ target }) =>
editor = @getEditor()
@saveFile editor
uri = editor.getURI()
word = Symbol.serializeWord @getWordUnderCursor(editor)

Expand Down

0 comments on commit f041cde

Please sign in to comment.