Commits

Anonymous committed fe9ed02

echo() encodes message to vim encoding. <C-c d> is now working for unicode-docstrings.
previously it crashed with UnicodeEncodeError

Comments (0)

Files changed (1)

 
 
 def echo(message):
+    if isinstance(message, unicode):
+        message = message.encode(vim.eval('&encoding'))
     print message
 
 def call(command):