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:
parent
09663e386e
commit
c60fbb35c7
1 changed files with 2 additions and 2 deletions
|
@ -438,7 +438,7 @@ CliAutoComplete._initTextcomplete = function() {
|
|||
self.openLater();
|
||||
return '$1$3 ';
|
||||
}
|
||||
return null;
|
||||
return '$1';
|
||||
},
|
||||
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 null;
|
||||
return '$1';
|
||||
},
|
||||
context: function(text) {
|
||||
const m = text.match(/^\s*resource\s+(\w+)\s+(\d+\s)?/i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue