summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-11 13:05:46 -0400
committerJules Laplace <jules@okfoc.us>2015-04-11 13:05:46 -0400
commiteed7977422102615781aec93be548e4d46b4700c (patch)
treece134bbfa2a710cd1170c87ca103c8320ba779a6 /js
parentc825857ba94e7952216522fd32f0172b1831a554 (diff)
more efficient CCs
Diffstat (limited to 'js')
-rw-r--r--js/color_code.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/color_code.js b/js/color_code.js
index a5bd376..5789042 100644
--- a/js/color_code.js
+++ b/js/color_code.js
@@ -198,7 +198,7 @@ var MircColor = (function(){
}
function ascii (rows) {
var lines = rows.map(function(str){
- return str.map(function(index){ return "\\x03" + index + "," + index + "x\\x03" }).join("")
+ return str.map(function(index){ return "\\x03"," + index + "x" }).join("")
}).join("\\n")
var txt = '/exec -out printf "' + lines + '"\n'
return txt
@@ -211,7 +211,7 @@ var MircColor = (function(){
function stringFromUrl (url, cb, opt) {
fromUrl(url, function(rows){
cb(rows.map(function(str){
- return str.map(function(index){ return "\C-c" + index + "," + index + "x\C-c" }).join("")
+ return str.map(function(index){ return "\C-c," + index + "x" }).join("")
}).join("\n"))
}, width)
}