From 6336c1da20fcb1bad60147255e2805d5699a6401 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 26 Feb 2021 15:53:19 +0900 Subject: view: Reposition cursors on tree resize. --- helix-term/src/ui/editor.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'helix-term') 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) => { -- cgit v1.2.3-70-g09d2