Thanks for your question. Your Home Buyers Plan repayment amount is not deducted from your RRSP contribution limit. You can make your Home Buyers repayment and still contribute the full amount to your RRSP's. You can designate some of the RRSP contributions ($4000) to HBP or just claim 1300 as your income for the tax year.
Please click here for more information about RRSP.