Handles fold opening for cursor line and pattern modes