src/vs/editor/common/cursor/cursorMoveOperations.ts/MoveOperations/clipRange
class MoveOperations:	private static clipRange(value: number, min: number, max: number): number {
		if (value < min) {
			return min;
		}
		if (value > max) {
			return max;
		}
		return value;
	}