# HG changeset patch # User wenzelm # Date 1754421952 -7200 # Node ID 728762181377f05fe7861cbfd2af4c3e56a46308 # Parent e2e43992f339713e443a752be584218c4f9e8d32 minor performance tuning; diff -r e2e43992f339 -r 728762181377 src/Pure/PIDE/editor.scala --- a/src/Pure/PIDE/editor.scala Tue Aug 05 21:44:54 2025 +0200 +++ b/src/Pure/PIDE/editor.scala Tue Aug 05 21:25:52 2025 +0200 @@ -121,9 +121,8 @@ def filter(msg: XML.Elem): Boolean = (for { (command, command_range) <- thy_command_range - msg_range <- Position.Range.unapply(msg.markup.properties) - chunk_range <- command.chunk.incorporate(msg_range) - } yield command_range.contains(chunk_range)) getOrElse true + msg_offset <- Position.Offset.unapply(msg.markup.properties) + } yield command_range.contains(command.chunk.decode(msg_offset))) getOrElse true thy_command orElse snapshot.current_command(snapshot.node_name, caret_offset) match { case None => Editor.Output.init