jonathanchu / emacs-powerline

Powerline for Emacs
497 stars 37 forks source link

powerline-default-theme needs escaping of %'s in buffer-name #29

Open knu opened 10 years ago

knu commented 10 years ago

If you visit a file named "a%2Fb.txt" for example, the buffer name is displayed as "aEmacsb.txt" in the mode line in powerline-default-theme.

The %2F part is expanded to "Emacs" (the frame name), which means there should be escaping of %'s.

knu commented 10 years ago

The same happens in powerline-vim-theme, but not in powerline-nano-theme probably thanks to the use of "%b".

jonathanchu commented 9 years ago

Ah, good catch. Would you care to submit a PR with a fix for this and I'll gladly merge? :smile_cat: