Skip to content

Commit 0040b17

Browse files
committed
Expand everything below C++ headers; fixes #55
1 parent 7fbb245 commit 0040b17

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

js/kunai/ui/treeview.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -379,21 +379,21 @@ class Treeview {
379379

380380
await this.dom.doStackExpand(this.page_idx.ns.namespace[0])
381381

382-
if (!IndexID.isClassy(this.page_idx.id.type)) {
382+
if (IndexID.isClassy(this.page_idx.id.type) || this.page_idx.in_header) {
383+
this.log.info(`maybe classy page '${this.page_idx.id.join()}'`)
384+
385+
const h = this.page_idx.in_header
386+
this.log.info(`expanding current page header '${h.id.join()}'`, h, this.page_idx)
387+
388+
await this.dom.doExpand(h.id)
389+
390+
} else {
383391
if (this.page_idx.id.type === IType.header) {
384392
await this.dom.doExpand(this.page_idx.id)
385393

386394
} else {
387395
this.log.info(`current page '${this.page_idx.id.join()}' is not classy. nothing left to expand`)
388396
}
389-
390-
} else {
391-
this.log.info(`classy page '${this.page_idx.id.join()}'`)
392-
393-
const h = this.page_idx.in_header
394-
this.log.info(`expanding current page header '${h.id.join()}'`, h, this.page_idx)
395-
396-
await this.dom.doExpand(h.id)
397397
}
398398

399399
// highlight self

0 commit comments

Comments
 (0)