feat: Do not add trailing space on directory autocomplete (#11227)

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
Ramón Medrano Llamas
2025-10-16 15:10:23 +02:00
committed by GitHub
parent 4d78653566
commit 284b2f8da9
2 changed files with 67 additions and 1 deletions
@@ -230,7 +230,11 @@ export function useCommandCompletion(
const lineCodePoints = toCodePoints(buffer.lines[cursorRow] || '');
const charAfterCompletion = lineCodePoints[end];
if (charAfterCompletion !== ' ') {
if (
charAfterCompletion !== ' ' &&
!suggestionText.endsWith('/') &&
!suggestionText.endsWith('\\')
) {
suggestionText += ' ';
}