commit 9fb89ee938bf8c230172776a796eaf6967076d0f from: Marcel Rodrigues date: Sun Feb 19 14:10:40 2017 UTC Fix bugs in paste location. commit - 179ab10595d85702e8ffd6569247b9df9aa8f564 commit + 9fb89ee938bf8c230172776a796eaf6967076d0f blob - 15e64a44c37cf2ce088123e26b417cf585116bd0 blob + 46697de7aae0fd0cda43aec1337ee969709b7e5c --- rover.c +++ rover.c @@ -1209,10 +1209,11 @@ copy_path_done: paste_path_fail: strcpy(BUF1, CLIPBOARD); strcpy(CWD, dirname(BUF1)); - strcat(CWD, "/"); + if (strcmp(CWD, "/")) + strcat(CWD, "/"); cd(1); strcpy(BUF1, CLIPBOARD); - try_to_sel(basename(BUF1)); + try_to_sel(strstr(CLIPBOARD, basename(BUF1))); update_view(); } else if (!strcmp(key, RVK_REFRESH)) { reload();