From 8cd587b496828d7f0948d0dab95009cc53c3090f Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 15 Apr 2009 18:30:30 -0400 Subject: [PATCH] Fix #212 --- common/content/io.js | 11 +++++++++-- common/content/style.js | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/common/content/io.js b/common/content/io.js index 8cf02c2f..27c860a3 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -287,8 +287,15 @@ function IO() //{{{ lines = util.Array.flatten(lines); // source a user .vimperatorrc file - lines.unshift('"' + liberator.version); - lines.push("\nsource! " + filename + ".local"); + lines.unshift('"' + liberator.version + "\n"); + + // For the record, I think that adding this line is absurd. --Kris + lines.push(commands.commandToString({ + command: "source", + bang: true, + arguments: [filename + ".local"] + })); + lines.push("\n\" vim: set ft=vimperator:"); try diff --git a/common/content/style.js b/common/content/style.js index 69daac67..ba075832 100644 --- a/common/content/style.js +++ b/common/content/style.js @@ -488,7 +488,7 @@ function Styles(name, store, serial) return namespace + "@-moz-document " + selectors + "{\n" + css + "\n}\n"; } } -let (array = utiltte.Array) +let (array = util.Array) { Styles.prototype = { get sites() array([v.sites for ([k, v] in this.userSheets)]).flatten().uniq(),