remove selected project instead of current project

`m-x counsel-projectile-switch-project` `m-o r` removes the *current* project
from `projectile-known-projects` instead of the selected one.

The expected behaviour is for the action to operate on the *selection*, which is
the case for the rest of the actions.

I was not able to determine why this was happening. The use of dynamic binding
and my inexperience with the elisp debugger were a limitation; It looks like it
might be an inconsistency in projectile, but not necessarily a bug.
This commit is contained in:
DEADB17 2017-03-11 13:08:46 -05:00
parent aefd25c747
commit 859357ab63

View file

@ -308,7 +308,7 @@ invokes `projectile-commander' instead of
"kill all buffers")
("r" (lambda (dir)
(let ((projectile-switch-project-action
'projectile-remove-current-project-from-known-projects))
(lambda () (projectile-remove-known-project dir))))
(projectile-switch-project-by-name dir arg)))
"remove from known projects")
("l" (lambda (dir)