on master help sign in
Clippy lint
commit4f77d80e74b1406b8701f5569b3bec8da2e5ed03 authorBlaž Hrastnik <blaz@mxxn.io> dateTue 16 Mar 2021, 13:51 (6 years ago) parent081e0ae
2 files changed+2−15
TODO.md+1−14 helix-core/src/syntax.rs+1−1
TODO.md+1−14
@@ -8,16 +8,7 @@
88------
99
10101
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
1611- [ ] 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
2112- [ ] Implement marks (superset of Selection/Range)
2213- [ ] ctrl-v/ctrl-x on file picker
2314- [ ] linewise selection work
@@ -25,17 +16,13 @@
2516- [ ] CI binary builds
2617
2718- [ ] regex search / select next
28−- [x] f / t mappings
2919- [ ] open_above (O) command
3020- [ ] = for auto indent line/selection
3121- [x] q should only close the view, if all are closed, close the editor
3222- [ ] buffers should sit on editor.buffers, view simply refs them
23+- [ ] yank on delete
3324
34−- [ ] pressing b at start of file needs to not crash
3525- [ ] draw separator line between views
36−- [ ] command to drop all selections except primary
37−
38−- [ ] diagnostic severity
3926
4027- [ ] lsp: signature help
4128- [x] lsp: hover
helix-core/src/syntax.rs+1−1
@@ -178,7 +178,7 @@ pub struct Syntax {
178178 pub(crate) root_layer: LanguageLayer,
179179}
180180
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> {
182182 let start_char = source.byte_to_char(range.start);
183183 let end_char = source.byte_to_char(range.end);
184184 Cow::from(source.slice(start_char..end_char))