Fix #525.  'gp' wasn't calculating the number of lines in the pasted
text.