2
0
mirror of https://github.com/mhinz/neovim-remote synced 2024-11-11 13:10:34 +00:00

Replace unnecessary Nvim.eval()

References #77
This commit is contained in:
Marco Hinz 2018-03-18 20:25:19 +01:00
parent 9954142dd4
commit 4f932bb6ff
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -82,8 +82,7 @@ class Nvr():
self.server.command('silent 1delete _ | set nomodified')
def fnameescaped_command(self, cmd, fname):
path = os.path.abspath(fname)
path = self.server.eval("fnameescape('{}')".format(path))
path = self.server.funcs.fnameescape(os.path.abspath(fname))
self.server.command('{} {}'.format(cmd, path))
def execute(self, arguments, cmd='edit', silent=False, wait=False):