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

Remove leading -- from arguments list

Fixes https://github.com/mhinz/neovim-remote/issues/17
This commit is contained in:
Marco Hinz 2016-07-03 13:24:54 +02:00
parent 7dce7ea34f
commit 7e76f845a3
2 changed files with 6 additions and 1 deletions

View File

@ -243,6 +243,11 @@ def main():
if flags.l and neovim.is_attached():
neovim.server.command('wincmd p')
try:
arguments.remove('--')
except ValueError:
pass
# Arguments not consumed by flags, are fed to --remote.
if arguments:
neovim.execute(arguments, 'edit')

View File

@ -16,7 +16,7 @@ setup(
install_requires = ['neovim'],
scripts = ['bin/nvr'],
packages = [],
version = '1.2.1',
version = '1.2.2',
license = 'MIT',
keywords = 'neovim nvim nvr remote helper',
classifiers = [