Initial work towards making autosuggestion smarter by recognizing paths

This commit is contained in:
ridiculousfish
2012-02-15 11:33:41 -08:00
parent e2ff77b4ec
commit a92d9d442b
10 changed files with 142 additions and 26 deletions

View File

@@ -1868,9 +1868,9 @@ void complete_print( string_buffer_t *out )
{
CHECK( out, );
for (completion_entry_list_t::iterator iter = completion_entries.begin(); iter != completion_entries.end(); iter++)
for (completion_entry_list_t::const_iterator iter = completion_entries.begin(); iter != completion_entries.end(); iter++)
{
completion_entry_t *e = *iter;
const completion_entry_t *e = *iter;
for (option_list_t::const_iterator oiter = e->options.begin(); oiter != e->options.end(); oiter++)
{
const complete_entry_opt_t *o = &*oiter;