Fix paste operation bug when cursor is on last line.
Merge pull request #198 from msvbg/master

Fix paste operation bug when cursor is on last line.