Browse Source

fix: lint

charlie 2 years ago
parent
commit
b6583965f7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/frontend/components/editor.cljs

+ 2 - 2
src/main/frontend/components/editor.cljs

@@ -14,7 +14,7 @@
             [frontend.handler.editor.lifecycle :as lifecycle]
             [frontend.handler.editor.lifecycle :as lifecycle]
             [frontend.handler.page :as page-handler]
             [frontend.handler.page :as page-handler]
             [frontend.handler.paste :as paste-handler]
             [frontend.handler.paste :as paste-handler]
-            [frontend.search :as search-handler]
+            [frontend.search :refer [fuzzy-search]]
             [frontend.mixins :as mixins]
             [frontend.mixins :as mixins]
             [frontend.modules.shortcut.core :as shortcut]
             [frontend.modules.shortcut.core :as shortcut]
             [frontend.state :as state]
             [frontend.state :as state]
@@ -309,7 +309,7 @@
             q            (or (editor-handler/get-selected-text)
             q            (or (editor-handler/get-selected-text)
                              (gp-util/safe-subs edit-content pos current-pos)
                              (gp-util/safe-subs edit-content pos current-pos)
                              "")
                              "")
-            matched      (seq (search-handler/fuzzy-search modes q))
+            matched      (seq (fuzzy-search modes q))
             matched      (or matched (if (string/blank? q) modes [q]))]
             matched      (or matched (if (string/blank? q) modes [q]))]
         [:div
         [:div
          (code-block-mode-keyup-listener q edit-content pos current-pos)
          (code-block-mode-keyup-listener q edit-content pos current-pos)