diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 09:27:42 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | d6005dc0eb69d1144e82fc3fbb1fab2f638667b5 (patch) | |
tree | 07b73a71eed5dd4d48021e59454ce0f7628c80fe /pkg/gui/gui.go | |
parent | b3a7acbdad7d11df12fce95aff8aa95eff7d0d6a (diff) |
more accurate comment
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 8 |
1 files 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 } |