def postprocess_matches(matchesp, matching_filenames)
matches = matchesp
return 0 if matches.nil?
if (@rl_ignore_completion_duplicates)
remove_duplicate_matches(matches)
end
if (@rl_ignore_some_completions_function && matching_filenames)
nmatch = matches.length
send(@rl_ignore_some_completions_function,matches)
if (matches.nil? || matches[0].nil?)
matches = nil
return 0
else
i = matches.length
if (i > 1 && i < nmatch)
t = matches[0]
compute_lcd_of_matches(matches, i - 1, t)
end
end
end
matchesp = matches
1
end