Fixed a bug: wrong editor being selected.

Thanks to @frederikb for his instructions at https://github.com/henningjensen/bpep/pull/1!