aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
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-view/src
parentad58286dc7e1f37d0b9edf4a0ee9b5f48ab026a9 (diff)
view: Reposition cursors on tree resize.
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/tree.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs
index 382ef09e..0a487b6f 100644
--- a/helix-view/src/tree.rs
+++ b/helix-view/src/tree.rs
@@ -231,6 +231,7 @@ impl Tree {
Content::View(view) => {
// debug!!("setting view area {:?}", area);
view.area = area;
+ view.ensure_cursor_in_view();
} // TODO: call f()
Content::Container(container) => {
// debug!!("setting container area {:?}", area);