bbatsov / helm-projectile

Helm UI for Projectile
327 stars 71 forks source link

'Remove from project list' action doesn't work on first project in list #145

Closed obar closed 3 years ago

obar commented 4 years ago

Expected behavior

helm-projectile-switch-project with M-D action should remove all marked projects

Actual behavior

Removes all marked projects except for the first one in projectile-known-projects

This is a small bug, happening because delete doesn't guarantee side effects and doesn't change the list if the first element is deleted.

Steps to reproduce the problem

(add-to-list 'projectile-known-projects "~/dummy-project/")
M-x helm-projectile-switch-project
M-D     (on dummy-project)
y       (to confirm removal at prompt)
M-x helm-projectile-switch-project

dummy-project is still on the list