Skip to content

Commit

Permalink
Fix the ' command crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Sep 26, 2016
1 parent bb19436 commit d65cc71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/lib/commands.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ helper_scroll = (vim, event, args...) ->
), vim.options['scroll.reset_timeout'])

helpScroll = help.getHelp(vim.window)?.querySelector('.wrapper')
if vim.isUIEvent(event) or helpScroll
if (event and vim.isUIEvent(event)) or helpScroll
activeElement = helpScroll or utils.getActiveElement(vim.window)
if vim._state.scrollableElements.has(activeElement) or helpScroll
viewportUtils.scroll(activeElement, options)
Expand Down

0 comments on commit d65cc71

Please sign in to comment.