2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 11:13:24 +00:00

fix: escape completion prefix if completions are escaped

fixes an issue with duplicated characters when
completing escaped paths
This commit is contained in:
TorchedSammy 2022-11-30 14:26:43 -04:00
parent 06102ebdae
commit b395b70ecd
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

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