mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-14 09:36:24 -04:00
Fix conflict resolution
This commit is contained in:
parent
a0e7604f61
commit
73548fa15f
|
|
@ -156,11 +156,9 @@ func (s *State) ContentAfterConflictResolve(path string, selection Selection) (b
|
|||
}
|
||||
|
||||
func isIndexToDelete(i int, conflict *mergeConflict, selection Selection) bool {
|
||||
isMarkerLine :=
|
||||
i == conflict.start ||
|
||||
i == conflict.ancestor ||
|
||||
i == conflict.target ||
|
||||
i == conflict.end
|
||||
if i < conflict.start || conflict.end < i {
|
||||
return false
|
||||
}
|
||||
|
||||
var isWantedContent bool
|
||||
switch selection {
|
||||
|
|
@ -175,5 +173,6 @@ func isIndexToDelete(i int, conflict *mergeConflict, selection Selection) bool {
|
|||
case BOTTOM:
|
||||
isWantedContent = conflict.target < i && i < conflict.end
|
||||
}
|
||||
return isMarkerLine || !isWantedContent
|
||||
|
||||
return !isWantedContent
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue