View Raw SPL
/* clear x span and stagger */
clearspanx(win)
{
        if (argc < 1) win = refwin(w0);

        if (clearspanx_defined(win))
        {
                spanx(win, 0, 0);
                staggerx(win, 0);
                setxauto(win, -1, -1);
                setxtic(-1);
        }
}


clearspanx_defined(win)
{
        local status;

        status = getspanx(win, 0) != getspanx(win, 1);
        
        return(status);
}