bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-10-13 22:19:16 +03:00
parent 4690bc0770
commit 34105a355c

View File

@ -281,13 +281,13 @@ var Outline = {
indent = node
node = 'focused' }
var cur = this.get(node)
if(!cur){
if(!cur){
return }
var siblings = this.get(node, 'siblings')
// deindent...
if(!indent){
var parent = this.get(node, 'parent')
if(!parent.classList.contains('.outline')){
if(parent != this.outline){
var children = siblings
.slice(siblings.indexOf(cur)+1)
parent.after(cur)