aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-08-10 10:06:55 +0200
committerAnton Khirnov <anton@khirnov.net>2012-08-10 10:06:55 +0200
commit2916df6fcfb253538b487274e70af20cd65f1fbe (patch)
treeab32bbe8d82896c7fc7d0a0540583fa48b06b744
parente9e7e48d2f5c966b093593905166ed3c0ce37528 (diff)
vim plugin: fix vim_get_tags() with non-ascii tag names.
-rw-r--r--vim/plugin/nm_vim.py3
1 files changed, 2 insertions, 1 deletions
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):
"""