Allow shortcuts without parameters #329.
authorDaniel Carl <danielcarl@gmx.de>
Fri, 3 Mar 2017 11:12:22 +0000 (12:12 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Fri, 3 Mar 2017 11:12:22 +0000 (12:12 +0100)
src/shortcut.c

index d907797..9435108 100644 (file)
@@ -201,6 +201,8 @@ static const char *shortcut_lookup(const char *string, const char **query)
             *query = p + 1;
         }
         g_free(key);
+    } else {
+        uri = g_hash_table_lookup(shortcuts, string);
     }
 
     if (!uri && default_key && (uri = g_hash_table_lookup(shortcuts, default_key))) {