From 7990cec1960c3322c95eb8e143b21a6f74732e98 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sun, 24 Jan 2016 19:42:12 +0100 Subject: [PATCH] Fix the empty notification for the `gH` command --- extension/lib/commands.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension/lib/commands.coffee b/extension/lib/commands.coffee index ee31f4a..6002d02 100644 --- a/extension/lib/commands.coffee +++ b/extension/lib/commands.coffee @@ -94,7 +94,8 @@ commands.history_forward = helper_go_history.bind(null, 'forward') commands.history_list = ({vim}) -> menu = vim.window.document.getElementById('backForwardMenu') utils.openPopup(menu) - vim.notify(translate('notification.history_list.none')) unless menu.open + if menu.childElementCount == 0 + vim.notify(translate('notification.history_list.none')) commands.reload = ({vim}) -> vim.window.BrowserReload() -- 2.39.3