From d6005dc0eb69d1144e82fc3fbb1fab2f638667b5 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 23 Aug 2020 09:27:42 +1000 Subject: [PATCH] more accurate comment --- pkg/gui/gui.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 9a24b7dbb..453780573 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -301,11 +301,9 @@ type guiState struct { ContextStack []Context ViewContextMap map[string]Context - // WindowViewNameMap is a mapping of windows to the current view of that window. - // Currently the only case where the distinction between a window and a view - // matters is with the commits view and the commitFiles view which both appear - // in the same place (and thus constitute the 'commits' window). - // If a window contains only one view, it shares the same name as the view. + // WindowViewNameMap is a mapping of windows to the current view of that window. + // Some views move between windows for example the commitFiles view and when cycling through + // side windows we need to know which view to give focus to for a given window WindowViewNameMap map[string]string }