fix: escape completion prefix if completions are escaped

fixes an issue with duplicated characters when
completing escaped paths
pull/217/head
TorchedSammy 2022-11-30 14:26:43 -04:00
parent 06102ebdae
commit b395b70ecd
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ func matchPath(query string) ([]string, string) {
entries = append(entries, entry)
}
}
if !strings.HasPrefix(oldQuery, "\"") {
baseName = escapeFilename(baseName)
}
return entries, baseName
}