mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-09 09:22:48 +03:00
feat(merge_panel): Add open/edit files in merge conflict panel
This commit is contained in:
committed by
Jesse Duffield
parent
53257db99d
commit
3b5a019e1a
@@ -182,3 +182,13 @@ func (s *State) ContentAfterConflictResolve(selection Selection) (bool, string,
|
||||
|
||||
return true, content, nil
|
||||
}
|
||||
|
||||
func (s *State) GetSelectedLine() int {
|
||||
conflict := s.currentConflict()
|
||||
if conflict == nil {
|
||||
return 1
|
||||
}
|
||||
selection := s.Selection()
|
||||
startIndex, _ := selection.bounds(conflict)
|
||||
return startIndex + 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user