Permalink
Browse files

fix typo

  • Loading branch information...
1 parent 71838df commit d90635c255b247fad18a94f885beece0121d14ea @frenchy64 frenchy64 committed Mar 6, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugin/typedclojure.vim
View
3 plugin/typedclojure.vim
@@ -57,7 +57,8 @@ function! s:checknsop() abort
\ ' (let [{:keys [env] :as data} (ex-data e)]'.
\ ' {:message (.getMessage e) :line (:line env)'.
\ ' :column (:column env) :form (if (contains? data :form) (str (:form data)) 0)'.
- \ ' :source (or (:source env) (str (apply str (replace {\. \/ \- \_} res)) ".clj"))'.
+ \ ' :source (or (:source env) (when-let [ns (-> env :ns :name str)]'.
+ \ ' (str (apply str (replace {\. \/ \- \_} ns)) ".clj")))'.
\ ' :ns (-> env :ns :name str)}))]'.
\ ' [:ok []]))'
let [status, r] = fireplace#evalparse(cmd)

0 comments on commit d90635c

Please sign in to comment.