]> rhodes.io Git - squeeze-el.git/commitdiff
Christophe Weblog Wiki Code Publications Music
handle new? behaviour of %s given a character
authorChristophe Rhodes <csr21@cantab.net>
Thu, 16 Oct 2014 13:17:08 +0000 (14:17 +0100)
committerChristophe Rhodes <csr21@cantab.net>
Thu, 16 Oct 2014 13:17:08 +0000 (14:17 +0100)
I'm sure it worked before, but now it prints the integer, not a
one-element character.  Use an explicit call to `string' to fix it.

squeeze.el

index 6e4f4da4c35371d6b677382a768b0fb3f3b83a42..415d569bcf4959edc22217ee72cc4bf71ef1355e 100644 (file)
             (make-string nfull ?█)
             (if (= width (+ nfull nblank))
                 ""
-              (aref " ▏▎▍▌▋▊▉█" (floor (+ frac 0.0625) 0.125)))
+              (string (aref " ▏▎▍▌▋▊▉█" (floor (+ frac 0.0625) 0.125))))
             (make-string nblank ? ))))
 
 (defun squeeze-mixer-make-bar (vol width)