src/Tools/jEdit/src/document_view.scala
changeset 54530 2c1440f70028
parent 54461 6c360a6ade0e
child 55432 9c53198dbb1c
equal deleted inserted replaced
54529:2ea4d717d152 54530:2c1440f70028
    80       val view = text_area.getView
    80       val view = text_area.getView
    81       if (view != null && view.getTextArea == text_area) {
    81       if (view != null && view.getTextArea == text_area) {
    82         PIDE.editor.current_command(view, snapshot) match {
    82         PIDE.editor.current_command(view, snapshot) match {
    83           case Some(command) =>
    83           case Some(command) =>
    84             snapshot.node.command_start(command) match {
    84             snapshot.node.command_start(command) match {
    85               case Some(start) => List(command.proper_range + start)
    85               case Some(start) => List(snapshot.convert(command.proper_range + start))
    86               case None => Nil
    86               case None => Nil
    87             }
    87             }
    88           case None => Nil
    88           case None => Nil
    89         }
    89         }
    90       }
    90       }