Bikeshed formatting

This commit is contained in:
Oliver Blanthorn 2022-05-15 15:58:14 +02:00
parent d55b1b7980
commit b4ba80bd13
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -103,12 +103,14 @@ export class TabHistoryCompletionSource extends Completions.CompletionSourceFuse
private addIndicies(tree) {
for (const node of tree) {
const parentCount = node["level"]
let string = parentCount + " "
let string = " "
for (let i = 0; i <= parentCount; ++i) {
if (i === parentCount) {
string += "├─"
if (i === parentCount - 1) {
string += "┌─"
} else if ( i < parentCount ) {
string += "" // NB: non-breaking space
} else {
string += "| "
string += "· "
}
}
node["prefix"] = string