From a6cadddef4b43659ad3faedac455f32f6019025d Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Fri, 25 Jun 2021 21:41:54 -0700 Subject: Fix silly mistake in previous phantom line bug fix. Fixes #381. I was trying to change an index value that... wasn't even an index value. --- helix-term/src/ui/editor.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'helix-term/src/ui') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 14cfc7dd..78cca5c7 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -8,7 +8,7 @@ use crate::{ use helix_core::{ coords_at_pos, - graphemes::{ensure_grapheme_boundary, ensure_grapheme_boundary_byte}, + graphemes::ensure_grapheme_boundary, syntax::{self, HighlightEvent}, LineEnding, Position, Range, }; @@ -143,7 +143,6 @@ impl EditorView { 'outer: for event in highlights { match event.unwrap() { HighlightEvent::HighlightStart(mut span) => { - span.0 = ensure_grapheme_boundary_byte(text, span.0); spans.push(span); } HighlightEvent::HighlightEnd => { -- cgit v1.2.3-70-g09d2