From 35dcdc686cb4676bf31a6f0bf99444e7728ac761 Mon Sep 17 00:00:00 2001 From: Mattias Eriksson Date: Thu, 18 Jan 2024 10:15:16 +0100 Subject: [PATCH] Avoid doing duplicate focus --- src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 279b224..9fbd590 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1019,10 +1019,7 @@ impl Application for App { .adjacent(self.pane_model.focus, direction) { self.pane_model.focus = adjacent; - return Command::batch([ - self.update_focus(), - self.update_title(Some(adjacent)), - ]); + return self.update_title(Some(adjacent)); } } Message::PaneResized(pane_grid::ResizeEvent { split, ratio }) => {