aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/editor.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-02-26 06:53:19 +0000
committerBlaž Hrastnik2021-02-26 06:53:19 +0000
commit6336c1da20fcb1bad60147255e2805d5699a6401 (patch)
tree12635a271f4a1f5a145dfbefebb03f351633f7f6 /helix-term/src/ui/editor.rs
parentad58286dc7e1f37d0b9edf4a0ee9b5f48ab026a9 (diff)
view: Reposition cursors on tree resize.
Diffstat (limited to 'helix-term/src/ui/editor.rs')
-rw-r--r--helix-term/src/ui/editor.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index b071292c..32697a03 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -350,7 +350,6 @@ impl Component for EditorView {
Event::Resize(width, height) => {
// HAXX: offset the render area height by 1 to account for prompt/commandline
cx.editor.tree.resize(Rect::new(0, 0, width, height - 1));
- // TODO: restore view.ensure_cursor_in_view();
EventResult::Consumed(None)
}
Event::Key(event) => {