fix(chore): typos

This commit is contained in:
charlie
2024-04-23 17:30:22 +08:00
parent 058f23fdd6
commit 3cb5fdbc97
2 changed files with 6 additions and 6 deletions

View File

@@ -155,8 +155,8 @@
(set! js/window -CodeMirror CodeMirror)
(defn- all-tokens-by-cursur
"All tokens from the beginning of the document to the cursur(inclusive)."
(defn- all-tokens-by-cursor
"All tokens from the beginning of the document to the cursor(inclusive)."
[cm]
(let [cur (.getCursor cm)
line (.-line cur)
@@ -236,7 +236,7 @@
(defn- doc-state-at-cursor
"Parse tokens into document state of last token."
[cm]
(let [tokens (all-tokens-by-cursur cm)
(let [tokens (all-tokens-by-cursor cm)
{:keys [current-config-path state-stack]} (tokens->doc-state tokens)
doc-state (first state-stack)]
[current-config-path doc-state]))
@@ -543,4 +543,4 @@
textarea-ref (.querySelector block-node "textarea")]
(when-let [codemirror-ref (gobj/get textarea-ref codemirror-ref-name)]
(.focus codemirror-ref))))
100)))
256)))