Lines Matching defs:matchBuf
502 static int find_match(char *matchBuf, int *len_with_quotes)
512 int_buf[i] = (unsigned char)matchBuf[i];
521 for (i = j = 0; matchBuf[i]; i++, j++)
522 if (matchBuf[i] == '\\') {
527 if (matchBuf[i] == '\t') /* algorithm equivalent */
532 else if (matchBuf[i] == '\t')
624 && matchBuf[pos_buf[0]]=='c'
625 && matchBuf[pos_buf[1]]=='d'
656 matchBuf[c++] = matchBuf[pos_buf[i]];
659 matchBuf[c] = 0;
660 /* old lenght matchBuf with quotes symbols */
734 char matchBuf[MAX_LINELEN];
742 tmp = strncpy(matchBuf, command_ps, cursor);
745 find_type = find_match(matchBuf, &recalc_pos);
754 if (matchBuf[0] == '~' && strchr(matchBuf, '/') == 0)
755 username_tab_completion(matchBuf, NULL);
760 exe_n_cwd_tab_completion(matchBuf, find_type);
811 if ((len_found - strlen(matchBuf) + command_len) < MAX_LINELEN) {
815 strcpy(matchBuf, command_ps + cursor);
819 strcat(command_ps, matchBuf);