Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Commit

Permalink
fixed line number within compiled region
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoduncan committed Apr 3, 2010
1 parent 7ff3c89 commit 02cf45e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/swank/commands/basic.clj
Expand Up @@ -43,8 +43,9 @@
(defn- compile-region
"Compile region."
([string file line]
(with-open [rdr (proxy [LineNumberingPushbackReader] ((StringReader. string))
(getLineNumber [] line))]
(with-open [rdr1 (proxy [LineNumberingPushbackReader] ((StringReader. string)))
rdr (proxy [LineNumberingPushbackReader] (rdr1)
(getLineNumber [] (+ line (.getLineNumber rdr1) -1)))]
(clojure.lang.Compiler/load rdr file (.getName (File. file))))))


Expand Down

0 comments on commit 02cf45e

Please sign in to comment.