changeset 25786:b102a94cc3b2

complete only file names for isfile and isfolder commands * input.cc (is_completing_dirfns): Add isfile and isfolder to the list.
author Mike Miller <mtmiller@octave.org>
date Tue, 14 Aug 2018 09:35:13 -0700
parents 73a1eb82c3a2
children 3293cd2651fb
files libinterp/corefcn/input.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/input.cc	Tue Aug 14 09:25:27 2018 -0700
+++ b/libinterp/corefcn/input.cc	Tue Aug 14 09:35:13 2018 -0700
@@ -300,8 +300,8 @@
 static bool
 is_completing_dirfns (void)
 {
-  static std::string dirfns_commands[] = {"cd", "ls"};
-  static const size_t dirfns_commands_length = 2;
+  static std::string dirfns_commands[] = {"cd", "isfile", "isfolder", "ls"};
+  static const size_t dirfns_commands_length = 4;
 
   bool retval = false;