bridge/class-master/depend/pari/src/gp/gp_rl.c
/* Wrapper around rl_complete to allow toggling insertion of arguments */
Wrapper around rl_complete to allow toggling insertion of arguments
Wrapper around rl_complete to allow toggling insertion of arguments
static int
pari_rl_complete(int count, int key)
{
  int ret;
  pari_rl.back = 0;
  if (count <= 0)
    return change_state("complete args", DO_ARGS_COMPLETE, count);
  rl_begin_undo_group();
  if (rl_last_func == pari_rl_complete)
    rl_last_func = (RLCI) rl_complete; 
  ret = ((RLCI)rl_complete)(count,key);
  if (pari_rl.back && (pari_rl.back <= rl_point))
    rl_point -= pari_rl.back;
  rl_end_undo_group(); return ret;
}
static int pari_rl_complete ( int count , int key ) { int ret ; pari_rl . back = 0 ; if ( count <= 0 ) return change_state ( " " , DO_ARGS_COMPLETE , count ) ; rl_begin_undo_group ( ) ; if ( rl_last_func == pari_rl_complete ) rl_last_func = ( RLCI ) rl_complete ; ret = ( ( RLCI ) rl_complete ) ( count , key ) ; if ( pari_rl . back && ( pari_rl . back <= rl_point ) ) rl_point -= pari_rl . back ; rl_end_undo_group ( ) ; return ret ; }
Wrapper around rl_complete to allow toggling insertion of arguments
Wrapper around rl_complete to allow toggling insertion of arguments
/* Make repeated TABs different */