From 2916df6fcfb253538b487274e70af20cd65f1fbe Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 10 Aug 2012 10:06:55 +0200 Subject: vim plugin: fix vim_get_tags() with non-ascii tag names. --- vim/plugin/nm_vim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vim/plugin/nm_vim.py b/vim/plugin/nm_vim.py index 8494278..7f67189 100644 --- a/vim/plugin/nm_vim.py +++ b/vim/plugin/nm_vim.py @@ -664,7 +664,8 @@ def vim_get_tags(): """ db = notmuch.Database() tags = '\n'.join(db.get_all_tags()) - vim.command('let taglist = \'%s\''%tags) + cmd = (u'let taglist = \'%s\''%tags).encode('utf-8') + vim.command(cmd) def vim_get_object(line, offset): """ -- cgit v1.2.3