From 4b6be9f09ff56dfae1c719cb744f2312e11be317 Mon Sep 17 00:00:00 2001
From: jdlugosz963 <jdlugosz963@gmail.com>
Date: Sun, 12 Dec 2021 23:09:20 +0100
Subject: add group maker

---
 src/components/Searcher.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/Searcher.vue')

diff --git a/src/components/Searcher.vue b/src/components/Searcher.vue
index 43dd7bd..8488fd4 100644
--- a/src/components/Searcher.vue
+++ b/src/components/Searcher.vue
@@ -38,7 +38,7 @@ export default {
       let is_current_set = false
 
       Object.entries(this.commands).forEach((element) => {
-        if(element[0].startsWith(this.search)) {
+        if(element[0].startsWith(this.search) && element[1] instanceof Function) {
           sugestions.push(element)
           if(!is_current_set){ 
             this.current = element
@@ -62,7 +62,7 @@ export default {
     },
 
     execute_current() {
-      let out = this.current[1]()
+      let out = this.current[1](this)
       
       if(out instanceof Object) {
         this.search = ''
-- 
cgit v1.2.3

