daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
716 stars 57 forks source link

Options after '--' not being passed into nvim #147

Closed jtprince closed 5 years ago

jtprince commented 5 years ago

This invocation opens app.py and then the file -- as the next buffer (so, improperly interpreting -- as a filename), and so does not set the variable as expected (since it interpreted as filename):

nvim-gtk app.py -- -c "let silliness=11"
# note that the command `:echo silliness` fails
# since options not passed in and silliness not set

This invocation merely opens the file named --, which also seems to be incorrect behavior:

nvim-gtk -- -c "let silliness=11" app.py

This command works as expected with nvim:

nvim app.py -c "let silliness=11"
# can `:echo silliness` and get abk 

Technical information

daa84 commented 5 years ago

looks like arch pkg is old, not sure, i try with current version and for me it works

jtprince commented 5 years ago

Works as expected when using the neovim-gtk-git package, which compiles from source. Thank you for checking this out.