Fixed errant semi-colon (fixes @befb943), removed unused "lastcurs" variable