-
-
Notifications
You must be signed in to change notification settings - Fork 55
fix: Make g:ledger_is_hledger set correctly #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Your testing chart and the code change don't add up. Something else is going on. The code change is only relevant to if you have the ledger_is_hledger value manually set but have an unset value for the bin. How are you ending up with ledger_bin being unset? |
|
This script recreates the truth tables with no vim config and no ledger binaries in the PATH: #!/bin/sh
truthtable() {
for ledger in ledger hledger ""; do
for ishledger in 0 1 ""; do
/bin/echo "set: g:ledger_bin=$ledger and g:ledger_is_hledger=$ishledger";
/bin/vim --clean -c "let g:ledger_bin=$ledger" -c "let g:ledger_is_hledger=$ishledger" -c "source autoload/ledger.vim" -c "sil exe '!/bin/echo result: g:ledger_bin=' .
g:ledger_bin . ' and g:ledger_is_hledger=' . g:ledger_is_hledger" -c q
done
done
}
/bin/git checkout 6d12e23e7261342f9dd4a23b9dd3a504454df002
/bin/echo patch not applied
PATH=
truthtable
/bin/git checkout a49ef3fbd49a7af124f04112e3292eee4e67110a
/bin/echo patch applied
truthtable My output: Note in particular the lines
|
Close #175
Before commit:
After commit: