1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 22:35:17 +03:00

Fix null when CLI autocomplete resource

This commit is contained in:
Miguel Angel Mulero Martinez 2020-12-30 08:58:18 +01:00
parent 09663e386e
commit c60fbb35c7

View file

@ -438,7 +438,7 @@ CliAutoComplete._initTextcomplete = function() {
self.openLater(); self.openLater();
return '$1$3 '; return '$1$3 ';
} }
return null; return '$1';
}, },
context: function(text) { context: function(text) {
const matchResource = text.match(/^\s*resource\s+(\w+)\s/i); const matchResource = text.match(/^\s*resource\s+(\w+)\s/i);
@ -477,7 +477,7 @@ CliAutoComplete._initTextcomplete = function() {
sendOnEnter = true; sendOnEnter = true;
return '$1none '; return '$1none ';
} }
return null; return '$1';
}, },
context: function(text) { context: function(text) {
const m = text.match(/^\s*resource\s+(\w+)\s+(\d+\s)?/i); const m = text.match(/^\s*resource\s+(\w+)\s+(\d+\s)?/i);