Remove leading -- from arguments list

Fixes https://github.com/mhinz/neovim-remote/issues/17
pull/20/head v1.2.2
Marco Hinz 8 years ago
parent 7dce7ea34f
commit 7e76f845a3

@ -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')

@ -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 = [

Loading…
Cancel
Save