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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user