src/Builder4/ValaCompileErrors.bjs
authorAlan <alan@roojs.com>
Fri, 12 Jan 2024 06:42:49 +0000 (14:42 +0800)
committerAlan <alan@roojs.com>
Fri, 12 Jan 2024 06:42:49 +0000 (14:42 +0800)
src/Builder4/ValaCompileErrors.vala

src/Builder4/ValaCompileErrors.bjs
src/Builder4/ValaCompileErrors.vala

index 2dba3d0..2f32a88 100644 (file)
                "\texpand.set_list_row(lr);",
                " ",
                " \t// expand current file.",
-               " \tif (_this.window.windowstate.file.path == np.file.path) {",
+               " \tif (_this.window.windowstate.file.path == np.file.path  np.lines.n_items > 0) {",
                " \t\tlr.expanded = true;",
                "\t}",
                " \t ",
index 086edbc..234c380 100644 (file)
                        expand.set_list_row(lr);
                  
                        // expand current file.
-                       if (_this.window.windowstate.file.path == np.file.path) {
+                       if (_this.window.windowstate.file.path == np.file.path  np.lines.n_items > 0) {
                                lr.expanded = true;
                        }