minor performance tuning;
authorwenzelm
Wed, 30 Jul 2025 15:50:11 +0200
changeset 82939 471a1f284437
parent 82938 0fcbdb907138
child 82940 ded486c16c77
minor performance tuning;
src/Pure/PIDE/editor.scala
--- a/src/Pure/PIDE/editor.scala	Wed Jul 30 13:56:41 2025 +0200
+++ b/src/Pure/PIDE/editor.scala	Wed Jul 30 15:50:11 2025 +0200
@@ -125,8 +125,8 @@
       def filter(msg: XML.Elem): Boolean =
         (for {
           command_range <- thy_command_range
-          range <- Position.Range.unapply(msg.markup.properties)
-        } yield command_range.contains(range)) getOrElse true
+          msg_offset <- Position.Offset.unapply(msg.markup.properties)
+        } yield command_range.contains(msg_offset)) getOrElse true
 
       thy_command orElse snapshot.current_command(snapshot.node_name, offset) match {
         case None => Editor.Output.init