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:
parent
7dce7ea34f
commit
7e76f845a3
5
bin/nvr
5
bin/nvr
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user