aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/editor.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-06 05:44:18 +0000
committerBlaž Hrastnik2020-10-13 14:13:56 +0000
commitb765c17896632e27857c7707a9d3d96bd49b8899 (patch)
tree8c9a95e1244c8839e2c21776bf73baee0a033d94 /helix-term/src/editor.rs
parent0926904d4c7f8851d53adfad337bac59ac8f8fb4 (diff)
Hacky undo/redo integration.
Diffstat (limited to 'helix-term/src/editor.rs')
-rw-r--r--helix-term/src/editor.rs28
1 files changed, 0 insertions, 28 deletions
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()
-// }