Skip to content

Commit

Permalink
Resolve ultisnips bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
starcraftman committed May 6, 2015
1 parent 4d97f35 commit a2b0bbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1105,9 +1105,9 @@ class Buffer(object):
curbuf[1] = '[{0}{1}]'.format(self.bar, num_spaces * ' ')

with self.lock:
vim_command('normal! 2G')
vim.command('normal! 2G')
if not self.is_win:
vim_command('redraw')
vim.command('redraw')

def write(self, action, name, lines):
first, rest = lines[0], lines[1:]
Expand All @@ -1118,7 +1118,7 @@ class Buffer(object):
try:
if action == Action.ERROR:
self.bar += 'x'
vim_command("call add(s:update.errors, '{0}')".format(name))
vim.command("call add(s:update.errors, '{0}')".format(name))
elif action == Action.DONE:
self.bar += '='

Expand Down

0 comments on commit a2b0bbb

Please sign in to comment.