mirror of https://github.com/laurent22/joplin.git
minor fixes
parent
7cc26a4fe4
commit
5118779a67
|
@ -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"));
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -1 +1 @@
|
|||
fa4bd30e1ee78746aa243fa65696c869
|
||||
6992ebc000d140ce3115945ff128ac7b
|
|
@ -28,7 +28,7 @@ class GeolocationReact {
|
|||
navigator.geolocation.getCurrentPosition((data) => {
|
||||
resolve(data);
|
||||
}, (error) => {
|
||||
rejec(error);
|
||||
reject(error);
|
||||
}, options);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue