typing "shift + a" on ".." in file view adds files from current working directory

Hi, I had a problem with my moc workflow:

* search for an artist/album with "/"
* tap "enter" to go inside
* go to parent dir <<<<---- this is the unwanted step
* tap "shift + a" to add files from the directory I was searching for

At first I wanted to make possible to add dir contets from "SEARCH" mode but the solution would be really twisted.
So I figured - why not add files from cwd when tapping "shift + a" on ".." file instead of showing "Can't add '..'"?
Here's the patch:

Index: interface.c
===================================================================
--- interface.c (revision 2586)
+++ interface.c (working copy)
@@ -1794,9 +1794,8 @@
}

if (!strcmp(file, "..")) {
- error ("Can't add '..'.");
free (file);
- return;
+ file = xstrdup(cwd);
}

iface_set_status ("Reading directories...");

Forums: