Convert file name to UTF-8 in vim file name segment

Closes #87.
This commit is contained in:
Kim Silkebækken 2013-01-21 17:55:05 +01:00
parent e64ef3c337
commit 614c08bee1
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def file_directory():
def file_name(display_no_file=False, no_file_text='[No file]'):
'''Return file name (tail component of the file path).'''
file_name = vim_funcs['expand']('%:~:.:t')
file_name = vim_funcs['expand']('%:~:.:t').decode('utf-8')
if not file_name and not display_no_file:
return None
if not file_name: