From b765c17896632e27857c7707a9d3d96bd49b8899 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 6 Oct 2020 14:44:18 +0900 Subject: Hacky undo/redo integration. --- helix-term/src/editor.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'helix-term') diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs index 0028521e..b7a385a1 100644 --- a/helix-term/src/editor.rs +++ b/helix-term/src/editor.rs @@ -426,31 +426,3 @@ impl Editor { // TODO: scope matching: biggest union match? [string] & [html, string], [string, html] & [ string, html] // can do this by sorting our theme matches based on array len (longest first) then stopping at the // first rule that matches (rule.all(|scope| scopes.contains(scope))) -// -// let visual_x = 0; -// let line = ?; -// for span in spans { -// start(scope) => scopes.push(scope) -// span => -// let text = rope.slice(span.start..span.end); -// let style = calculate_style(scopes); -// for each grapheme in text.graphemes() { -// // if newline += lines, continue -// -// if state.selection.ranges().any(|range| range.contains(char_index)) { -// if exactly on cursor { -// } -// if on primary cursor? { -// } -// modify style temporarily -// } -// -// // if in bounds -// -// // if tab, draw tab width -// // draw(visual_x, line, grapheme, style) -// // increment visual_x by grapheme_width(grapheme) -// // increment char_index by grapheme.len_chars() -// } -// end => scopes.pop() -// } -- cgit v1.2.3-70-g09d2