Mercurial > octave-nkf
comparison src/input.cc @ 2281:7d11fd3aaaa1
[project @ 1996-05-24 19:58:59 by jwe]
author | jwe |
---|---|
date | Fri, 24 May 1996 19:58:59 +0000 |
parents | 38fea6d34daf |
children | e50d337478a5 |
comparison
equal
deleted
inserted
replaced
2280:85185f2a2576 | 2281:7d11fd3aaaa1 |
---|---|
1167 } | 1167 } |
1168 | 1168 |
1169 DEFUN (completion_matches, args, nargout, | 1169 DEFUN (completion_matches, args, nargout, |
1170 "completion_matches (HINT): generate possible completions given HINT") | 1170 "completion_matches (HINT): generate possible completions given HINT") |
1171 { | 1171 { |
1172 string_vector retval; | 1172 octave_value retval; |
1173 | 1173 |
1174 int nargin = args.length (); | 1174 int nargin = args.length (); |
1175 | 1175 |
1176 if (nargin == 1) | 1176 if (nargin == 1) |
1177 { | 1177 { |
1210 break; | 1210 break; |
1211 } | 1211 } |
1212 } | 1212 } |
1213 | 1213 |
1214 if (nargout > 0) | 1214 if (nargout > 0) |
1215 retval = list; | 1215 { |
1216 if (! list.empty ()) | |
1217 retval = list; | |
1218 } | |
1216 else | 1219 else |
1217 { | 1220 { |
1218 // We don't use string_vector::list_in_columns here | 1221 // We don't use string_vector::list_in_columns here |
1219 // because it will be easier for Emacs if the names | 1222 // because it will be easier for Emacs if the names |
1220 // appear in a single column. | 1223 // appear in a single column. |