1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 07:05:46 +01:00

Dispatch input event after external editing.

This commit is contained in:
Kris Maglione
2011-07-21 23:03:04 -04:00
parent 9667a0d19a
commit 307ca9a621
3 changed files with 16 additions and 8 deletions

View File

@@ -431,14 +431,11 @@ var File = Class("File", {
ofstream.init(this, mode, perms, 0);
try {
if (callable(buf))
buf(ofstream.QueryInterface(Ci.nsIOutputStream));
else {
var ocstream = getStream(0);
ocstream.writeString(buf);
}
var ocstream = getStream(0);
ocstream.writeString(buf);
}
catch (e if callable(buf) && e.result == Cr.NS_ERROR_LOSS_OF_SIGNIFICANT_DATA) {
catch (e if e.result == Cr.NS_ERROR_LOSS_OF_SIGNIFICANT_DATA) {
ocstream.close();
ocstream = getStream("?".charCodeAt(0));
ocstream.writeString(buf);
return false;