diff options
Diffstat (limited to 'vendor/github.com/Azure/go-ansiterm/winterm/utilities.go')
-rw-r--r-- | vendor/github.com/Azure/go-ansiterm/winterm/utilities.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/Azure/go-ansiterm/winterm/utilities.go b/vendor/github.com/Azure/go-ansiterm/winterm/utilities.go new file mode 100644 index 000000000..afa7635d7 --- /dev/null +++ b/vendor/github.com/Azure/go-ansiterm/winterm/utilities.go @@ -0,0 +1,9 @@ +// +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) +} |