allows shortcuts without parameters
authorRobert Timm <mail@rtti.de>
Thu, 2 Mar 2017 09:06:54 +0000 (10:06 +0100)
committerRobert Timm <mail@rtti.de>
Fri, 3 Mar 2017 07:21:54 +0000 (08:21 +0100)
src/shortcut.c

index af858ab..4e83e4b 100644 (file)
@@ -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