windmove-constrain-to-range

windmove-constrain-to-range is a compiled Lisp function in `windmove.el'.

(windmove-constrain-to-range N MIN-N MAX-N)

Ensure that N is between MIN-N and MAX-N inclusive by constraining.
If N is less than MIN-N, return MIN-N; if greater than MAX-N, return
MAX-N.