diff --git a/lib/notational-velocity-view.coffee b/lib/notational-velocity-view.coffee index 0e0bab6..5819b3a 100644 --- a/lib/notational-velocity-view.coffee +++ b/lib/notational-velocity-view.coffee @@ -75,8 +75,8 @@ class NotationalVelocityView extends SelectListView @div class: 'secondary-line', "#{content}" confirmSelection: -> - item = @getSelectedItem() - filePath = null + item = @getSelectedItem() + filePath = null sanitizedQuery = @getFilterQuery().replace(/\s+$/, '') calculatedPath = path.join(@rootDirectory, sanitizedQuery + '.md') if item?