1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

follow cursor when staging and unstaging a file rename

This commit is contained in:
Jesse Duffield
2020-08-07 18:27:18 +10:00
parent 469ac116ef
commit 660cc2f3d1
5 changed files with 53 additions and 7 deletions

View File

@ -322,3 +322,15 @@ func FindStringSubmatch(str string, regexpStr string) (bool, []string) {
match := re.FindStringSubmatch(str)
return len(match) > 0, match
}
func StringArraysOverlap(strArrA []string, strArrB []string) bool {
for _, first := range strArrA {
for _, second := range strArrB {
if first == second {
return true
}
}
}
return false
}