Fix Python 3 issue in todo snippet

This commit is contained in:
Kenneth Benzie 2019-03-23 23:15:13 +00:00
parent ce6ec3d410
commit 84e310a28f

View File

@ -5,7 +5,7 @@ Kenneth Benzie (Benie) <k.benzie83@gmail.com>
endsnippet
global !p
comment=vim.current.buffer.options['commentstring'].strip()
comment=vim.current.buffer.options['commentstring'].decode('utf-8').strip()
def commentbefore():
commentbefore = comment[0:comment.find('%s')].strip()