@@ -233,7 +233,7 @@ impl EditorView {
233 // TODO: render also if only one of the ranges is in viewport
233 // TODO: render also if only one of the ranges is in viewport
234 let mut start = view.screen_coords_at_pos(doc, text, selection.anchor);
234 let mut start = view.screen_coords_at_pos(doc, text, selection.anchor);
235 let mut end = view.screen_coords_at_pos(doc, text, selection.head);
235 let mut end = view.screen_coords_at_pos(doc, text, selection.head);
237 let head = end;
237 let head = end;
239 if selection.head < selection.anchor {
239 if selection.head < selection.anchor {
@@ -282,7 +282,7 @@ impl EditorView {
282 selection_style,
282 selection_style,
286 // cursor
286 // cursor
287 if let Some(head) = head {
287 if let Some(head) = head {
288 surface.set_style(
288 surface.set_style(