1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-27 23:08:02 +02:00

more accurate comment

This commit is contained in:
Jesse Duffield 2020-08-23 09:27:42 +10:00
parent b3a7acbdad
commit d6005dc0eb

View File

@ -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
}