mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 22:37:58 +01:00
Miscellaneous formatting fixes.
--HG-- extra : rebase_source : ac84b34db15b95fd5a6ad597a1420ffc4cb35414
This commit is contained in:
@@ -47,4 +47,4 @@ if (XPCOMUtils.generateNSGetFactory)
|
|||||||
else
|
else
|
||||||
const NSGetModule = XPCOMUtils.generateNSGetModule([CommandLineHandler]);
|
const NSGetModule = XPCOMUtils.generateNSGetModule([CommandLineHandler]);
|
||||||
|
|
||||||
// vim: set ft=javascript fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
@@ -1035,12 +1035,12 @@ const Buffer = Module("buffer", {
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function() {
|
destroy: function () {
|
||||||
if (this.docShell)
|
if (this.docShell)
|
||||||
this.docShell.destroy();
|
this.docShell.destroy();
|
||||||
},
|
},
|
||||||
|
|
||||||
onStateChange: function(progress, request, flag, status) {
|
onStateChange: function (progress, request, flag, status) {
|
||||||
// once it's done loading...
|
// once it's done loading...
|
||||||
if ((flag & Ci.nsIWebProgressListener.STATE_STOP) && status == 0) {
|
if ((flag & Ci.nsIWebProgressListener.STATE_STOP) && status == 0) {
|
||||||
try {
|
try {
|
||||||
@@ -1050,7 +1050,8 @@ const Buffer = Module("buffer", {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.callback(this.file);
|
this.callback(this.file);
|
||||||
} finally {
|
}
|
||||||
|
finally {
|
||||||
this.file.remove(false);
|
this.file.remove(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1352,7 +1353,8 @@ const Buffer = Module("buffer", {
|
|||||||
function (tmpFile) {
|
function (tmpFile) {
|
||||||
try {
|
try {
|
||||||
file.write(tmpFile.read(), ">>");
|
file.write(tmpFile.read(), ">>");
|
||||||
} catch (e) {
|
}
|
||||||
|
catch (e) {
|
||||||
dactyl.echoerr(file.path.quote() + ": E212: Can't open file for writing");
|
dactyl.echoerr(file.path.quote() + ": E212: Can't open file for writing");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -362,7 +362,8 @@ const Editor = Module("editor", {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
this.editFileExternally(tmpfile.path);
|
this.editFileExternally(tmpfile.path);
|
||||||
} finally {
|
}
|
||||||
|
finally {
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -632,10 +632,11 @@ const RangeFind = Class("RangeFind", {
|
|||||||
get selection() {
|
get selection() {
|
||||||
try {
|
try {
|
||||||
return this.selectionController.getSelection(Ci.nsISelectionController.SELECTION_NORMAL)
|
return this.selectionController.getSelection(Ci.nsISelectionController.SELECTION_NORMAL)
|
||||||
} catch (e) {
|
}
|
||||||
|
catch (e) {
|
||||||
return null;
|
return null;
|
||||||
}}
|
}
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
contains: function (range, r)
|
contains: function (range, r)
|
||||||
range.compareBoundaryPoints(range.START_TO_END, r) >= 0 &&
|
range.compareBoundaryPoints(range.START_TO_END, r) >= 0 &&
|
||||||
|
|||||||
@@ -668,4 +668,6 @@ const JavaScript = Module("javascript", {
|
|||||||
getter: function () services.get("debugger").isOn
|
getter: function () services.get("debugger").isOn
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
Reference in New Issue
Block a user