1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Fix autocomplete of resource pin

This commit is contained in:
Miguel Angel Mulero Martinez 2021-04-05 13:51:16 +02:00
parent 9ece824971
commit fb7937ee79

View file

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