Commits

angri  committed fe9ed02

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

  • Participants
  • Parent commits 89c8719

Comments (0)

Files changed (1)

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