Skip to content

Commit

Permalink
Fix accents bug
Browse files Browse the repository at this point in the history
The plugin was unable to get texts with non-ascii  characters.

Signed-off-by: Mailson Lira <[email protected]>
  • Loading branch information
omailson committed Feb 8, 2012
1 parent 71eb10a commit 3c7b9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/lodgeit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ if vim.eval('a:0') == '1':
if paste:
vim.command('tabnew')
vim.command('file Lodgeit\ Paste\ \#%s' % paste_id)
vim.current.buffer[:] = paste['code'].splitlines()
vim.current.buffer[:] = [line.encode('utf-8') for line in paste['code'].splitlines()]
vim.command('setlocal ft=' + language_reverse_mapping.
get(paste['language'], 'text'))
vim.command('setlocal nomodified')
Expand Down

0 comments on commit 3c7b9d8

Please sign in to comment.