src/Tools/jEdit/src/jedit/document_view.scala
changeset 38855 35b2d91e88d7
parent 38845 a9e37daf5bd0
child 38880 5b4efe90c120
equal deleted inserted replaced
38854:eb6a35be18ca 38855:35b2d91e88d7
   173               for ((command, command_start) <- cmds if !command.is_ignored) {
   173               for ((command, command_start) <- cmds if !command.is_ignored) {
   174                 val p =
   174                 val p =
   175                   text_area.offsetToXY(line_start max snapshot.convert(command_start))
   175                   text_area.offsetToXY(line_start max snapshot.convert(command_start))
   176                 val q =
   176                 val q =
   177                   text_area.offsetToXY(line_end min snapshot.convert(command_start + command.length))
   177                   text_area.offsetToXY(line_end min snapshot.convert(command_start + command.length))
   178                 assert(p.y == q.y)
   178                 if (p.y != q.y) System.err.println("Unexpected coordinates: " + p + ", " + q)
   179                 gfx.setColor(Document_View.choose_color(snapshot, command))
   179                 gfx.setColor(Document_View.choose_color(snapshot, command))
   180                 gfx.fillRect(p.x, y, q.x - p.x, line_height)
   180                 gfx.fillRect(p.x, y, q.x - p.x, line_height)
   181               }
   181               }
   182             }
   182             }
   183             y += line_height
   183             y += line_height