-q: switch to correct directory first

References
https://github.com/mhinz/neovim-remote/issues/29
pull/21/merge v1.4.3
Marco Hinz 8 years ago
parent af050cb55e
commit 8d7fe39aee
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

@ -352,11 +352,14 @@ def main():
neovim.server.command(cmd)
if flags.q and neovim.is_attached():
neovim.server.command("silent execute 'lcd' fnameescape('{}')".
format(os.environ['PWD'].replace("'", "''")))
neovim.server.command('call setqflist([])')
with open(flags.q, 'r') as f:
for line in f.readlines():
neovim.server.command("caddexpr '{}'".
format(line.rstrip().replace("'", "''").replace('|', '\|')))
neovim.server.command('silent lcd -')
neovim.server.command('cfirst')

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

Loading…
Cancel
Save