Lines Matching refs:depth
3347 int depth; in find_pattern_in_path() local
3416 depth = depth_displayed = -1; in find_pattern_in_path()
3448 if (i == depth + 1) in find_pattern_in_path()
3489 while (depth_displayed < depth && !got_int) in find_pattern_in_path()
3570 if (depth + 1 == old_files) in find_pattern_in_path()
3575 for (i = 0; i <= depth; i++) in find_pattern_in_path()
3577 for (i = depth + 1; i < old_files + max_path_depth; i++) in find_pattern_in_path()
3592 if ((files[depth + 1].fp = mch_fopen((char *)new_fname, "r")) in find_pattern_in_path()
3597 if (++depth == old_files) in find_pattern_in_path()
3606 files[depth].name = curr_fname = new_fname; in find_pattern_in_path()
3607 files[depth].lnum = 0; in find_pattern_in_path()
3608 files[depth].matched = FALSE; in find_pattern_in_path()
3725 if (depth == -1 && lnum == curwin->w_cursor.lnum) in find_pattern_in_path()
3747 if (depth < 0) in find_pattern_in_path()
3754 LSIZE, files[depth].fp)) in find_pattern_in_path()
3817 (depth == -1) ? NULL : files[depth].fp, in find_pattern_in_path()
3818 (depth == -1) ? &lnum : &files[depth].lnum, in find_pattern_in_path()
3823 for (i = 0; i <= depth; ++i) in find_pattern_in_path()
3829 if (depth == -1 && lnum == curwin->w_cursor.lnum in find_pattern_in_path()
3838 (depth == -1) ? NULL : files[depth].fp, in find_pattern_in_path()
3839 (depth == -1) ? &lnum : &files[depth].lnum, 1L); in find_pattern_in_path()
3861 if (depth == -1) in find_pattern_in_path()
3883 0, files[depth].name, NULL, TRUE, in find_pattern_in_path()
3884 files[depth].lnum, FALSE))) in find_pattern_in_path()
3888 curwin->w_cursor.lnum = files[depth].lnum; in find_pattern_in_path()
3936 while (depth >= 0 && !already in find_pattern_in_path()
3937 && vim_fgets(line = file_line, LSIZE, files[depth].fp)) in find_pattern_in_path()
3939 fclose(files[depth].fp); in find_pattern_in_path()
3941 files[old_files].name = files[depth].name; in find_pattern_in_path()
3942 files[old_files].matched = files[depth].matched; in find_pattern_in_path()
3943 --depth; in find_pattern_in_path()
3944 curr_fname = (depth == -1) ? curbuf->b_fname in find_pattern_in_path()
3945 : files[depth].name; in find_pattern_in_path()
3946 if (depth < depth_displayed) in find_pattern_in_path()
3947 depth_displayed = depth; in find_pattern_in_path()
3949 if (depth >= 0) // we could read the line in find_pattern_in_path()
3951 files[depth].lnum++; in find_pattern_in_path()
3970 for (i = 0; i <= depth; i++) in find_pattern_in_path()