Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi committed Apr 26, 2024
1 parent b23ef7b commit 21e0afa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use helix_core::{
unicode::width::UnicodeWidthStr,
visual_offset_from_block, Change, Position, Range, Selection, Transaction,
};
use helix_stdx::rope::RopeSliceExt;
use helix_view::{
document::{Mode, SavePoint, SCRATCH_BUFFER_NAME},
editor::{CompleteAction, CursorShapeConfig},
Expand Down Expand Up @@ -386,8 +387,8 @@ impl EditorView {
let mut spans = syntax.rainbow_spans(text, Some(syntax_node_range), theme.rainbow_length());

for (_highlight, range) in spans.iter_mut() {
let start = text.byte_to_char(range.start);
let end = text.byte_to_char(range.end);
let start = range.start;
let end = range.end;

*range = start..end;
}
Expand Down

0 comments on commit 21e0afa

Please sign in to comment.