Mercurial > hg > octave-lyh
diff src/input.cc @ 4143:62afb31c1f85
[project @ 2002-11-01 17:27:38 by jwe]
author | jwe |
---|---|
date | Fri, 01 Nov 2002 17:27:38 +0000 |
parents | 7787c144d5d9 |
children | 6b96ce9f5743 |
line wrap: on
line diff
--- a/src/input.cc +++ b/src/input.cc @@ -381,9 +381,13 @@ { string_vector names; + command_editor::filename_completion_desired (true); + prefix = ""; - if (! text.empty () && text != "." && text.rfind ('.') != NPOS) + if (! text.empty () && text != "." && text != ".." + && text.find_first_of (file_ops::dir_sep_chars) == NPOS + && text.rfind ('.') != NPOS) names = generate_struct_completions (text, prefix, hint); else names = make_name_list ();