From 2540b2a035cbe11e861e9ebe14eaf525a310a58b Mon Sep 17 00:00:00 2001 From: Nicolas Hainaux Date: Sat, 17 Jun 2017 06:06:51 +0200 Subject: [PATCH] BUGFIX issue #79 from symbols-tree-view's PR https://github.com/xndcn/symbols-tree-view/pull/172 --- lib/symbols-tree-nav.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/symbols-tree-nav.coffee b/lib/symbols-tree-nav.coffee index 40bf75a..7835e40 100644 --- a/lib/symbols-tree-nav.coffee +++ b/lib/symbols-tree-nav.coffee @@ -80,7 +80,7 @@ module.exports = focusClickedTag: (editor, text) -> console.log "clicked: #{text}" - if editor = @getEditor() + if @parser && editor = @getEditor() tag = (t for t in @parser.tags when t.name is text)[0] @treeView.select(tag) # imho, its a bad idea =(