You've already forked inshellisense
mirror of
https://github.com/wavetermdev/inshellisense.git
synced 2026-04-22 15:25:33 -07:00
fix: completion fails to detect space when represented with cursor movement (#116)
Signed-off-by: Chapman Pendery <cpendery@vt.edu>
This commit is contained in:
@@ -205,10 +205,12 @@ export class CommandManager {
|
||||
for (let i = lineY == promptEndMarker.line ? this.#activeCommand.promptText.length : 0; i < this.#terminal.cols; i++) {
|
||||
const cell = line?.getCell(i);
|
||||
if (cell == null) continue;
|
||||
const chars = cell.getChars();
|
||||
const cleanedChars = chars == "" ? " " : chars;
|
||||
if (!this._isSuggestion(cell) && suggestions.length == 0) {
|
||||
command += cell.getChars();
|
||||
command += cleanedChars;
|
||||
} else {
|
||||
suggestions += cell.getChars();
|
||||
suggestions += cleanedChars;
|
||||
}
|
||||
}
|
||||
lineY += 1;
|
||||
|
||||
Reference in New Issue
Block a user