lazydocker/vendor/github.com/Azure/go-ansiterm/winterm/utilities.go
Dawid Dziurla c4240e0ff0
merge recent sdk changes + ...
- return if subprocess cmd == nil
- hide whole interface when attaching to container
- show interface when detaching from container
- don't panic on exit after detaching
2019-07-08 16:56:39 +02:00

9 lines
291 B
Go

// +build windows
package winterm
// AddInRange increments a value by the passed quantity while ensuring the values
// always remain within the supplied min / max range.
func addInRange(n int16, increment int16, min int16, max int16) int16 {
return ensureInRange(n+increment, min, max)
}