Changeset a91c555f in mainline


Ignore:
Timestamp:
2018-11-21T10:10:07Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
31872f7
Parents:
d91488d
git-author:
Jiri Svoboda <jiri@…> (2018-11-20 21:09:17)
git-committer:
Jiri Svoboda <jiri@…> (2018-11-21 10:10:07)
Message:

Complete directories in command position (comments in code can be useful).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/compl.c

    rd91488d ra91c555f  
    373373                                free(ent_path);
    374374
    375                                 /* If completing command, do not match directories. */
    376                                 if (!ent_stat.is_directory || !cs->is_command) {
    377                                         asprintf(compl, "%s%c", dent->d_name,
    378                                             ent_stat.is_directory ? '/' : ' ');
    379                                         cs->last_compl = *compl;
    380                                         if (*compl == NULL)
    381                                                 return ENOMEM;
    382                                 }
     375                                asprintf(compl, "%s%c", dent->d_name,
     376                                    ent_stat.is_directory ? '/' : ' ');
     377                                cs->last_compl = *compl;
     378                                if (*compl == NULL)
     379                                        return ENOMEM;
    383380                        }
    384381                }
Note: See TracChangeset for help on using the changeset viewer.