[Pkg-mozext-commits] [itsalltext] 188/459: * Fixed the WvH bug - tempfiles left in the itsalltext dir. * accidentally turned on blocking for the editor. Whups!
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit c0284f41281b5ab68fe61bd12a89ddfd1957abe8
Author: docwhat at gerf.org <docwhat at gerf.org>
Date: Wed Apr 4 15:31:00 2007 -0400
* Fixed the WvH bug - tempfiles left in the itsalltext dir.
* accidentally turned on blocking for the editor. Whups!
---
chrome/content/cacheobj.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/cacheobj.js b/chrome/content/cacheobj.js
index 9cc6e13..45e7a04 100644
--- a/chrome/content/cacheobj.js
+++ b/chrome/content/cacheobj.js
@@ -118,12 +118,13 @@ CacheObj.prototype.initFromExistingFile = function() {
var fobj = ItsAllText.getEditDir();
var entries = fobj.directoryEntries;
var ext = null;
+ var tmpfiles = /(\.bak|.tmp|~)$/;
while (entries.hasMoreElements()) {
var entry = entries.getNext();
entry.QueryInterface(Components.interfaces.nsIFile);
if (entry.leafName.indexOf(base) === 0) {
// startswith
- if (ext === null) {
+ if (ext === null && !entry.leafName.match(tmpfiles)) {
ext = entry.leafName.slice(base.length);
}
try{
@@ -254,7 +255,7 @@ CacheObj.prototype.edit = function(extension) {
// to the process.
var args = [filename];
var result = {};
- var ec = process.run(true, args, args.length, result);
+ var ec = process.run(false, args, args.length, result);
this._is_watching = true;
} catch(e) {
var params = {out:null,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list