From: Robert Timm <mail@rtti.de>
Date: Thu, 2 Mar 2017 09:06:54 +0000 (+0100)
Subject: allows shortcuts without parameters
X-Git-Url: https://git.owens.tech/112-editable-focus.html/112-editable-focus.html/git?a=commitdiff_plain;h=4860da82a0cbacd40c3bd251724397343190e703;p=vimb.git

allows shortcuts without parameters
---

diff --git a/src/shortcut.c b/src/shortcut.c
index af858ab..4e83e4b 100644
--- a/src/shortcut.c
+++ b/src/shortcut.c
@@ -202,6 +202,8 @@ static const char *shortcut_lookup(Client *c, const char *string, const char **q
             *query = p + 1;
         }
         g_free(key);
+    } else {
+        uri = g_hash_table_lookup(c->shortcut.table, string);
     }
 
     if (!uri && c->shortcut.fallback