1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 06:24:12 +01:00

Add caret mode to help index.

This commit is contained in:
Kris Maglione
2011-10-03 19:14:27 -04:00
parent 705e481351
commit 48212b7392
4 changed files with 6 additions and 2 deletions

View File

@@ -1569,6 +1569,7 @@ var Buffer = Module("Buffer", {
let file = io.File(filename.replace(/^>>\s*/, ""));
dactyl.assert(args.bang || file.exists() && file.isWritable(),
_("io.notWriteable", file.path.quote()));
return buffer.viewSourceExternally(buffer.focusedFrame.document,
function (tmpFile) {
try {
@@ -1580,7 +1581,7 @@ var Buffer = Module("Buffer", {
});
}
let file = io.File(filename.replace(RegExp(File.PATH_SEP + "*$"), ""));
let file = io.File(filename);
if (filename.substr(-1) === File.PATH_SEP || file.exists() && file.isDirectory())
file.append(Buffer.getDefaultNames(doc)[0][0]);