Skip to content

Commit

Permalink
handle PrintWriter's write call with offset and len parameter
Browse files Browse the repository at this point in the history
fixes #298
  • Loading branch information
schmir authored and martinklepsch committed Oct 26, 2015
1 parent c13950c commit 4a3553a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions boot/pod/src/boot/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@
(let [strip? #(and (not @*colorize?*) (string? %))
strip #(fn [s] (if (strip? s) (ansi/strip-ansi s) s))]
(proxy [java.io.PrintWriter] [writer]
(write [s]
(.write writer ((strip) s))
(.flush writer)))))
(write
([s]
(.write writer ((strip) s))
(.flush writer))
([s ^Integer off ^Integer len]
(.write writer s off len)
(.flush writer))))))

(defn extract-ids
[sym]
Expand Down

0 comments on commit 4a3553a

Please sign in to comment.