src/Tools/jEdit/src/output_dockable.scala
changeset 65195 ffab6f460a82
parent 65194 6dabae94cf57
child 65246 848965b5befc
equal deleted inserted replaced
65194:6dabae94cf57 65195:ffab6f460a82
    50       snapshot <- PIDE.editor.current_node_snapshot(view)
    50       snapshot <- PIDE.editor.current_node_snapshot(view)
    51       if follow && !snapshot.is_outdated
    51       if follow && !snapshot.is_outdated
    52     } {
    52     } {
    53       val (command, results) =
    53       val (command, results) =
    54         PIDE.editor.current_command(view, snapshot) match {
    54         PIDE.editor.current_command(view, snapshot) match {
    55           case Some(command) =>
    55           case Some(command) => (command, snapshot.command_results(command))
    56             (command, snapshot.state.command_results(snapshot.version, command))
       
    57           case None => (Command.empty, Command.Results.empty)
    56           case None => (Command.empty, Command.Results.empty)
    58         }
    57         }
    59 
    58 
    60       val new_output =
    59       val new_output =
    61         if (!restriction.isDefined || restriction.get.contains(command))
    60         if (!restriction.isDefined || restriction.get.contains(command))