Lokaltog/vim-powerline — pull request #7 by zoonfafer (2011-12-13 12:55:27+00:00)
Title: Split & take the first path from globpath() in Pl#Load

Although probably a rare case, sometimes one might have several
powerline theme files with the same name (or simply symlinks) lying
around in Vim's runtimepath.

When that happens, filereadable() would return 'false', hence skipping
the `source' process.

This patch chooses the first path as the `main_path' for sourcing.

It should also work in the normal case where only one path is returned
from globpath().