minor fixes

pull/41/head
Laurent Cozic 2017-09-12 18:01:15 +00:00
parent 7cc26a4fe4
commit 5118779a67
5 changed files with 11 additions and 11 deletions

View File

@ -425,13 +425,13 @@ class Application {
} else {
let items = await handleAutocompletion(this.autocompletion_);
if (!items.length) return;
for (let i = 0; i < items.length; i++) {
items[i] = items[i].replace(/ /g, '\\ ');
items[i] = items[i].replace(/'/g, "\\'");
items[i] = items[i].replace(/:/g, "\\:");
items[i] = items[i].replace(/\(/g, '\\(');
items[i] = items[i].replace(/\)/g, '\\)');
}
for (let i = 0; i < items.length; i++) {
items[i] = items[i].replace(/ /g, '\\ ');
items[i] = items[i].replace(/'/g, "\\'");
items[i] = items[i].replace(/:/g, "\\:");
items[i] = items[i].replace(/\(/g, '\\(');
items[i] = items[i].replace(/\)/g, '\\)');
}
console.info(items.join("\n"));
}

View File

@ -58,7 +58,7 @@ let commandCancelCalled_ = false;
process.on("SIGINT", async function() {
const cmd = application.currentCommand();
if (!cmd.cancellable() || commandCancelCalled_) {
if (!cmd || !cmd.cancellable() || commandCancelCalled_) {
process.exit(0);
} else {
commandCancelCalled_ = true;

View File

@ -7,7 +7,7 @@
"url": "https://github.com/laurent22/joplin"
},
"url": "git://github.com/laurent22/joplin.git",
"version": "0.9.18",
"version": "0.9.19",
"bin": {
"joplin": "./main.js"
},

View File

@ -1 +1 @@
fa4bd30e1ee78746aa243fa65696c869
6992ebc000d140ce3115945ff128ac7b

View File

@ -28,7 +28,7 @@ class GeolocationReact {
navigator.geolocation.getCurrentPosition((data) => {
resolve(data);
}, (error) => {
rejec(error);
reject(error);
}, options);
});
}