equal
deleted
inserted
replaced
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 |