mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-03-02 04:02:13 +01:00
Don't show ghost text if curLine is empty (#674)
This commit is contained in:
parent
067bef0cb5
commit
29ad232ac6
@ -187,9 +187,7 @@ export class AutocompleteModel {
|
||||
* @see getPrimarySuggestionIndex
|
||||
*/
|
||||
getPrimarySuggestionCompletion(): string {
|
||||
if (!this.isEnabled) {
|
||||
return null;
|
||||
}
|
||||
if (!this.isEnabled || !this.globalModel.inputModel.curLine) return null;
|
||||
const suggestionIndex = this.getPrimarySuggestionIndex();
|
||||
const retVal = this.getSuggestionCompletion(suggestionIndex);
|
||||
if (retVal) {
|
||||
|
Loading…
Reference in New Issue
Block a user