commit - ddbe9d623a3039adc34a3e38e62badcbca91925c
commit + 532092a832a02f924a07b3e7c809ceda702d9843
blob - bb6628605435add149bdd3723fbd9128a5655bd5
blob + 40179d1c90d936b4afb8b8297703478cfa9cf53e
--- rover.c
+++ rover.c
}
mvhline(LINES - 1, 0, ' ', STATUSPOS);
if (strlen(INPUT)) {
- if (ok) addfile(INPUT);
+ if (ok) { addfile(INPUT); cd(1); }
else message("File already exists.", RED);
}
- cd(1);
}
else if (!strcmp(key, RVK_NEW_DIR)) {
int ok = 0;
}
mvhline(LINES - 1, 0, ' ', STATUSPOS);
if (strlen(INPUT)) {
- if (ok) adddir(INPUT);
+ if (ok) { adddir(INPUT); cd(1); }
else message("File already exists.", RED);
}
- cd(1);
}
else if (!strcmp(key, RVK_RENAME)) {
int ok = 0;
}
mvhline(LINES - 1, 0, ' ', STATUSPOS);
if (strlen(INPUT)) {
- if (ok) rename(FNAME(FSEL), INPUT);
+ if (ok) { rename(FNAME(FSEL), INPUT); cd(1); }
else message("File already exists.", RED);
}
- cd(1);
}
else if (!strcmp(key, RVK_TG_MARK)) {
if (MARKED(FSEL))