aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/completion.rs12
-rw-r--r--helix-term/src/ui/editor.rs14
2 files changed, 0 insertions, 26 deletions
diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs
index abed2846..1ee4a01a 100644
--- a/helix-term/src/ui/completion.rs
+++ b/helix-term/src/ui/completion.rs
@@ -280,18 +280,6 @@ impl Completion {
}
}
-// need to:
-// - trigger on the right trigger char
-// - detect previous open instance and recycle
-// - update after input, but AFTER the document has changed
-// - if no more matches, need to auto close
-//
-// missing bits:
-// - a more robust hook system: emit to a channel, process in main loop
-// - a way to find specific layers in compositor
-// - components register for hooks, then unregister when terminated
-// ... since completion is a special case, maybe just build it into doc/render?
-
impl Component for Completion {
fn handle_event(&mut self, event: Event, cx: &mut Context) -> EventResult {
// let the Editor handle Esc instead
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 3d2e4298..f9c5e55e 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -522,7 +522,6 @@ impl EditorView {
let info = theme.get("info");
let hint = theme.get("hint");
- // Vec::with_capacity(diagnostics.len()); // rough estimate
let mut lines = Vec::new();
for diagnostic in diagnostics {
let text = Text::styled(
@@ -637,19 +636,6 @@ impl EditorView {
base_style,
));
- // let indent_info = match doc.indent_style {
- // IndentStyle::Tabs => "tabs",
- // IndentStyle::Spaces(1) => "spaces:1",
- // IndentStyle::Spaces(2) => "spaces:2",
- // IndentStyle::Spaces(3) => "spaces:3",
- // IndentStyle::Spaces(4) => "spaces:4",
- // IndentStyle::Spaces(5) => "spaces:5",
- // IndentStyle::Spaces(6) => "spaces:6",
- // IndentStyle::Spaces(7) => "spaces:7",
- // IndentStyle::Spaces(8) => "spaces:8",
- // _ => "indent:ERROR",
- // };
-
// Position
let pos = coords_at_pos(
doc.text().slice(..),