on master help sign in
Clippy lint
4f77d80Blaž Hrastnik
TODO.md+1−14
@@ -8,16 +8,7 @@
8------
8------
9
9
101
101
11−- [x] selection mode
12−- [x] % for whole doc selection
13−- [x] vertical splits
14−- [x] input counts (30j)
15− - [x] input counts for b, w, e
16- [ ] respect view fullscreen flag
11- [ ] respect view fullscreen flag
17−- [x] retain horiz when moving vertically
18−- [w] retain horiz when moving via ctrl-u/d
19−- [x] deindent
20−- [x] update lsp on redo/undo
21- [ ] Implement marks (superset of Selection/Range)
12- [ ] Implement marks (superset of Selection/Range)
22- [ ] ctrl-v/ctrl-x on file picker
13- [ ] ctrl-v/ctrl-x on file picker
23- [ ] linewise selection work
14- [ ] linewise selection work
@@ -25,17 +16,13 @@
25- [ ] CI binary builds
16- [ ] CI binary builds
26
17
27- [ ] regex search / select next
18- [ ] regex search / select next
28−- [x] f / t mappings
29- [ ] open_above (O) command
19- [ ] open_above (O) command
30- [ ] = for auto indent line/selection
20- [ ] = for auto indent line/selection
31- [x] q should only close the view, if all are closed, close the editor
21- [x] q should only close the view, if all are closed, close the editor
32- [ ] buffers should sit on editor.buffers, view simply refs them
22- [ ] buffers should sit on editor.buffers, view simply refs them
23+- [ ] yank on delete
33
24
34−- [ ] pressing b at start of file needs to not crash
35- [ ] draw separator line between views
25- [ ] draw separator line between views
36−- [ ] command to drop all selections except primary
37−
38−- [ ] diagnostic severity
39
26
40- [ ] lsp: signature help
27- [ ] lsp: signature help
41- [x] lsp: hover
28- [x] lsp: hover
helix-core/src/syntax.rs+1−1
@@ -178,7 +178,7 @@ pub struct Syntax {
178 pub(crate) root_layer: LanguageLayer,
178 pub(crate) root_layer: LanguageLayer,
179}
179}
180
180
181−fn byte_range_to_str<'a>(range: std::ops::Range<usize>, source: RopeSlice<'a>) -> Cow<'a, str> {
181+fn byte_range_to_str(range: std::ops::Range<usize>, source: RopeSlice) -> Cow<str> {
182 let start_char = source.byte_to_char(range.start);
182 let start_char = source.byte_to_char(range.start);
183 let end_char = source.byte_to_char(range.end);
183 let end_char = source.byte_to_char(range.end);
184 Cow::from(source.slice(start_char..end_char))
184 Cow::from(source.slice(start_char..end_char))