aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/rmdir.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/rmdir.go')
-rw-r--r--commands/account/rmdir.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/account/rmdir.go b/commands/account/rmdir.go
index cd70aa62..ff1463b6 100644
--- a/commands/account/rmdir.go
+++ b/commands/account/rmdir.go
@@ -72,7 +72,8 @@ func (r RemoveDir) Execute(args []string) error {
var newDir string
dirFound := false
- if oldDir, ok := history[acct.Name()]; ok {
+ oldDir := acct.Directories().Previous()
+ if oldDir != "" {
present := false
for _, dir := range acct.Directories().List() {
if dir == oldDir {