mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Bikeshed formatting
This commit is contained in:
parent
d55b1b7980
commit
b4ba80bd13
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue