File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments