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 committed Oct 19, 2015
1 parent 77ba880 commit 5fbea77
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 5fbea77

Please sign in to comment.