mirror of https://github.com/Hilbis/Hilbish
fix: escape completion prefix if completions are escaped
fixes an issue with duplicated characters when completing escaped pathspull/217/head
parent
06102ebdae
commit
b395b70ecd
|
@ -161,6 +161,9 @@ func matchPath(query string) ([]string, string) {
|
||||||
entries = append(entries, entry)
|
entries = append(entries, entry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if !strings.HasPrefix(oldQuery, "\"") {
|
||||||
|
baseName = escapeFilename(baseName)
|
||||||
|
}
|
||||||
|
|
||||||
return entries, baseName
|
return entries, baseName
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue