Use cursor buffer row instead of screen row

Fixes #17