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

better handling of cursor and origin positionings

This commit is contained in:
Jesse Duffield
2018-09-10 20:17:39 +10:00
parent 7f4371ad71
commit 52b132fe01
4 changed files with 60 additions and 22 deletions

View File

@ -99,3 +99,11 @@ func ResolvePlaceholderString(str string, arguments map[string]string) string {
}
return str
}
// Min returns the minimum of two integers
func Min(x, y int) int {
if x < y {
return x
}
return y
}