git-svn-id: https://klish.googlecode.com/svn/trunk@507 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
@@ -248,6 +248,10 @@ const clish_command_t *clish_nspace_find_next_completion(clish_nspace_t * this,
retval = clish_nspace_find_create_command(this, real_prefix, cmd);
lub_string_free(real_prefix);
+ if (retval && iter_cmd &&
+ lub_string_nocasecmp(iter_cmd, clish_command__get_name(retval)) > 0)
+ return NULL;
+
return retval;
}