Skip to content

fix: Add space escaping for source command on makeprg setting #161

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yahorni
Copy link

@yahorni yahorni commented Nov 13, 2024

Problem

A path to my ledger file contains spaces and during nvim/vim start I see the error:

$ nvim "ledger file with spaces.ledger"
image

$ vim "ledger file with spaces.ledger"
image

Tested both ledger and hledger binaries, only ledger is affected

Solution

Escaping source command argument with substitute (the same way it's done in #122) resolves the issue
Additionaly, I formatted the line with concatenation for better readability for both ledger/hledger

Tested on vim 9.1.785 and neovim v0.10.2
Probably fixes #144

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Still encountering issues with spacing in filename
1 participant