bbatsov / helm-projectile

Helm UI for Projectile
327 stars 71 forks source link

helm-projectile-switch-to-buffer switch to previous buffer if enter C-g during the buffer selection #156

Closed jasonmiu closed 2 years ago

jasonmiu commented 2 years ago

Expected behavior

After calling the command helm-projectile-switch-to-buffer, the helm buffer list appears for selecting a buffer. If "C-g" (keyboard-quit) is entered, the helm-projectile-switch-to-buffer should quit and the current buffer should not be changed.

Actual behavior

"C-g" caused the helm-projectile-switch-to-buffer switching to a previous buffer.

Steps to reproduce the problem

  1. open file A from a projectile project (C-p p f)
  2. open file B from the same project (C-p p f)
  3. call the command helm-projectile-switch-to-buffer, the buffer selecting list appears
  4. C-g
  5. the current buffer changes to file A

Backtraces if necessary (M-x toggle-debug-on-error)

no error from the command

Environment & version information

jasonmiu commented 2 years ago

I figured out this was not the helm-projectile-switch-to-buffer issue, but because I rebound it to projectile-switch-to-buffer, and my system was actually showing the behavior of the latter one.

So this is the issue of projectile-switch-to-buffer, sorry for the confusion, my bad. Closing this now.