mode-sensitive cursors work