Sets the current cursor for the buffer.
Sets the current cursor for the buffer to cursor. If cursor is null, the current cursor is removed, and a cursor is selected automatically by the buffer (depending on whether the cursor is pointing at a clickback).