ido-max-work-directory-list

ido-max-work-directory-list is a variable defined in `ido.el'.
Its value is
50


Documentation:
Maximum number of working directories to record.
This is the list of directories where files have most recently been opened.
See `ido-work-directory-list' and `ido-save-directory-list-file'.

You can customize this variable.