Beispiel #1
0
/*
 * Tab to the next stop, returning true if the cursor moved
 */
Bool
TabToNextStop(TScreen * screen)
{
    int saved_column = screen->cur_col;
    int next = TabNext(screen, term->tabs, screen->cur_col);
    int max = CurMaxCol(screen, screen->cur_row);

    if (next > max)
        next = max;
    set_cur_col(screen, next);

    return (screen->cur_col > saved_column);
}
Beispiel #2
0
/*
 * Tab to the next stop, returning true if the cursor moved
 */
Bool
TabToNextStop(XtermWidget xw)
{
    TScreen *screen = TScreenOf(xw);
    int saved_column = screen->cur_col;
    int next = TabNext(xw, xw->tabs, screen->cur_col);
    int max = LineMaxCol(screen, getLineData(screen, screen->cur_row));

    if (next > max)
	next = max;
    set_cur_col(screen, next);

    return (screen->cur_col > saved_column);
}