Mercurial > hg > octave-thorsten
changeset 2281:7d11fd3aaaa1
[project @ 1996-05-24 19:58:59 by jwe]
author | jwe |
---|---|
date | Fri, 24 May 1996 19:58:59 +0000 |
parents | 85185f2a2576 |
children | e50d337478a5 |
files | src/input.cc |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/input.cc +++ b/src/input.cc @@ -1169,7 +1169,7 @@ DEFUN (completion_matches, args, nargout, "completion_matches (HINT): generate possible completions given HINT") { - string_vector retval; + octave_value retval; int nargin = args.length (); @@ -1212,7 +1212,10 @@ } if (nargout > 0) - retval = list; + { + if (! list.empty ()) + retval = list; + } else { // We don't use string_vector::list_in_columns here