mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Two small bug fixes: interface bug in the delete progress, and getpath returned double slash on root
git-svn-id: svn://blicky.net/ncdu/trunk@22 ce56bc8d-f834-0410-b703-f827bd498a76
This commit is contained in:
parent
66bdf71f97
commit
4654bb93c4
2 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ static void drawProgress(char *file) {
|
|||
wattroff(prg, A_BOLD);
|
||||
|
||||
mvwaddstr(prg, 1, 2, cropdir(file, 47));
|
||||
mvwaddstr(prg, 5, 41, "Press q to abort");
|
||||
mvwaddstr(prg, 4, 41, "Press q to abort");
|
||||
|
||||
wrefresh(prg);
|
||||
delwin(prg);
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ char *getpath(struct dir *cur, char *to) {
|
|||
|
||||
to[0] = '\0';
|
||||
while(c--) {
|
||||
if(list[c]->parent && list[c]->name[strlen(list[c]->name)-1] != '/')
|
||||
if(list[c]->parent && list[c]->parent->name[strlen(list[c]->parent->name)-1] != '/')
|
||||
strcat(to, "/");
|
||||
strcat(to, list[c]->name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue