示例#1
0
文件: tabs.c 项目: narenas/nx-libs
/*
 * Tab to the previous stop, returning true if the cursor moved
 */
Bool
TabToPrevStop(TScreen * screen)
{
    int saved_column = screen->cur_col;

    set_cur_col(screen, TabPrev(term->tabs, screen->cur_col));

    return (screen->cur_col < saved_column);
}
示例#2
0
文件: tabs.c 项目: mullikine/xterm278
/*
 * Tab to the previous stop, returning true if the cursor moved
 */
Bool
TabToPrevStop(XtermWidget xw)
{
    TScreen *screen = TScreenOf(xw);
    int saved_column = screen->cur_col;

    set_cur_col(screen, TabPrev(xw->tabs, screen->cur_col));

    return (screen->cur_col < saved_column);
}
示例#3
0
/*
 * Tab to the previous stop, returning true if the cursor moved
 */
Bool
TabToPrevStop(XtermWidget xw)
{
    TScreen *screen = TScreenOf(xw);
    int saved_column = screen->cur_col;
    int next_column = TabPrev(xw->tabs, screen->cur_col);

    if (xw->flags & ORIGIN) {
        int left = ScrnLeftMargin(xw);
        if (next_column < left)
            next_column = left;
    }

    set_cur_col(screen, next_column);

    return (screen->cur_col < saved_column);
}