aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorBenoît CORTIER2021-06-15 04:29:03 +0000
committerBenoît Cortier2021-06-15 06:33:12 +0000
commit6fb2d2679dc63ca34be0d02efb543c3e0b49cb74 (patch)
treeea5355af22833de91a71350c07f271d911798b32 /helix-term/src/ui
parenteb77de6a51c053400e9759f6b55c620685b543fa (diff)
Use `_impl` suffix instead of `_` prefix
Helpers / internal implementations where using the `_` prefix. However, this prefix also suppress unused warnings. I suggest we use the `_impl` suffix instead.
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/editor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 838684ba..4b4b9fb2 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -564,7 +564,7 @@ impl EditorView {
}
_ => {
// set the count
- cxt._count = cxt.editor.count.take();
+ cxt.count = cxt.editor.count.take();
// TODO: edge case: 0j -> reset to 1
// if this fails, count was Some(0)
// debug_assert!(cxt.count != 0);
@@ -612,7 +612,7 @@ impl Component for EditorView {
let mut cxt = commands::Context {
register: helix_view::RegisterSelection::default(),
editor: &mut cx.editor,
- _count: None,
+ count: None,
callback: None,
on_next_key_callback: None,
callbacks: cx.callbacks,