bbatsov / helm-projectile

Helm UI for Projectile
327 stars 71 forks source link

helm-projectile-on highlighting second suggestion in helm m-x #96

Closed eamonnsullivan closed 6 years ago

eamonnsullivan commented 6 years ago

I have the following in my Helm configuration:

(global-set-key (kbd "M-x") 'undefined)
(global-set-key (kbd "M-x") 'helm-M-x)

In my Projectile configuration, I have this:

(helm-projectile-on)
(setq projectile-completion-system 'helm)
(setq projectile-switch-project-action 'helm-projectile-find-file)

In the latest release, when I typeM-x, the second suggested command is highlighted, not the first one, so I have to type C-p to get the command I intended.

If I comment out the three Projectile lines above, then I get the expected behaviour.

I suspect the change in commit https://github.com/bbatsov/helm-projectile/commit/4b6685a4f5e07d34329c3d30924a5a64a4742948

Expected behavior

helm-M-x should default to the first selection on the list.

Actual behavior

helm-M-x is defaulting to the second item

Steps to reproduce the problem

A minimal configuration of projectile (above) with Helm installed, should reproduce the problem.

Environment & version information

I am on Mac OS-X 10.12.6

eamonnsullivan commented 6 years ago

The suspect commit was to fix https://github.com/bbatsov/helm-projectile/issues/42

xiongtx commented 6 years ago

Thanks, should be fixed.