aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/tree.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-08-23 05:07:50 +0000
committerBlaž Hrastnik2022-08-23 05:07:50 +0000
commite4c9d4082a139aac3aea4506918171b96e81f5b9 (patch)
treece6ce437ca62211806db3ba66f39d9adebfc83d2 /helix-view/src/tree.rs
parent7b8e4ac95a83513b315af29591ae957ae861605c (diff)
fix: Reset document mode when losing focus
Fixes #3090
Diffstat (limited to 'helix-view/src/tree.rs')
-rw-r--r--helix-view/src/tree.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs
index c4474c33..eaf1dbd2 100644
--- a/helix-view/src/tree.rs
+++ b/helix-view/src/tree.rs
@@ -504,12 +504,6 @@ impl Tree {
Some(child_id)
}
- pub fn focus_direction(&mut self, direction: Direction) {
- if let Some(id) = self.find_split_in_direction(self.focus, direction) {
- self.focus = id;
- }
- }
-
pub fn focus_next(&mut self) {
// This function is very dumb, but that's because we don't store any parent links.
// (we'd be able to go parent.next_sibling() recursively until we find something)