suppress nodes with vacuous status, notably empty nodes (amending 5f160df596c1);
authorwenzelm
Mon, 18 Feb 2019 16:13:10 +0100
changeset 69820 dfc5f8294fbc
parent 69819 32c4f01a5e33
child 69821 8432b771f12e
suppress nodes with vacuous status, notably empty nodes (amending 5f160df596c1);
src/Tools/jEdit/src/theories_dockable.scala
--- a/src/Tools/jEdit/src/theories_dockable.scala	Mon Feb 18 16:04:52 2019 +0100
+++ b/src/Tools/jEdit/src/theories_dockable.scala	Mon Feb 18 16:13:10 2019 +0100
@@ -150,7 +150,7 @@
 
         paint_segment(0, size.width, background)
         nodes_status.get(node_name) match {
-          case Some(node_status) if node_status.total > 0 =>
+          case Some(node_status) =>
             val segments =
               List(
                 (node_status.unprocessed, PIDE.options.color_value("unprocessed1_color")),
@@ -165,7 +165,7 @@
               last - w - 1
             })
 
-          case _ =>
+          case None =>
             paint_segment(0, size.width, PIDE.options.color_value("unprocessed1_color"))
         }
         super.paintComponent(gfx)
@@ -223,8 +223,10 @@
     nodes_status = nodes_status1
     if (nodes_status_changed) {
       status.listData =
-        (for { (name, node_status) <- nodes_status1.present.iterator if !node_status.is_suppressed }
-          yield name).toList
+        (for {
+          (name, node_status) <- nodes_status1.present.iterator
+          if !node_status.is_suppressed && node_status.total > 0
+        } yield name).toList
     }
   }