After removing an active cursor, make the nearest one active, instead of always making the previous one active.