/* * Handle right arrow key */ static void rl_key_right (void) { if (rl_ucspos >= rl_ucscol.len) return; if (rl_tab_state > 0) { if (rl_tab_common < rl_tab_len) rl_tab_common++; else rl_tab_accept(); } rl_right (1); }
int SLrline_move (SLrline_Type *rli, int n) { if (rli == NULL) return -1; if (n < 0) { n = -n; while (n && rli->point) { (void) rl_left (rli); n--; } return 0; } while (n && (rli->point != rli->len)) { (void) rl_right (rli); n--; } return 0; }