equal
deleted
inserted
replaced
316 def revert(offset: Int): Int = (offset /: reverse_edits)((i, edit) => edit.revert(i)) |
316 def revert(offset: Int): Int = (offset /: reverse_edits)((i, edit) => edit.revert(i)) |
317 def lookup_command(id: Document.Command_ID): Option[Command] = |
317 def lookup_command(id: Document.Command_ID): Option[Command] = |
318 state_snapshot.lookup_command(id) |
318 state_snapshot.lookup_command(id) |
319 def state(command: Command): Command.State = |
319 def state(command: Command): Command.State = |
320 try { state_snapshot.command_state(document, command) } |
320 try { state_snapshot.command_state(document, command) } |
321 catch { case _: State.Fail => command.empty_state } |
321 catch { case _: Document.State.Fail => command.empty_state } |
322 } |
322 } |
323 } |
323 } |
324 |
324 |
325 def act |
325 def act |
326 { |
326 { |