Skip to content

Commit

Permalink
Fix #412: Rename function fails on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Oct 9, 2018
1 parent 9868833 commit 4dcc9c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/omnisharp/commands.py
Expand Up @@ -172,9 +172,13 @@ def renameTo(name):
}
response = getResponse(ctx, '/rename', parameters, json=True)
changes = response['Changes']
ret = []
for change in changes:
change['FileName'] = formatPathForClient(ctx, change['FileName'])
return changes
ret.append({
'FileName': formatPathForClient(ctx, change['FileName']),
'Buffer': change['Buffer'],
})
return ret


@vimcmd
Expand Down

0 comments on commit 4dcc9c7

Please sign in to comment.