Improved cursor behavior

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>