In open_file, asking for completion on a directory returns all files from the parent directory.
Created by: jeromemaloberti
I could trace the problem to the line:
if is_dir && s.[len-1] = '/' then
(
-> let entries = dir_entries (Filename.dirname s) in
(entries, s)
)
in Ed_misc.select_file. Filename.dirname s should be s to return the files of the current directory. Is it on purpose ? This behaviour is quite confusing ...