mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 05:58:03 +01:00
Poll temp files in <C-i> so I don't have to be edgy every time I quit the editor.
This commit is contained in:
@@ -1037,8 +1037,11 @@ const Buffer = Module("buffer", {
|
||||
this.file = io.createTempFile();
|
||||
this.file.write(this.docShell.document.body.textContent);
|
||||
}
|
||||
this.callback(this.file);
|
||||
this.file.remove(false);
|
||||
try {
|
||||
this.callback(this.file);
|
||||
} finally {
|
||||
this.file.remove(false);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
this.destroy();
|
||||
|
||||
Reference in New Issue
Block a user