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