Johann,

I was having a small problem with your toggle function but I tracked
down the bug and came up with a fix.

Whenever I had a transaction such as
2010/09/10 * castle bar, nyc (beer)
the transaction.from_lnum function would recognize (beer) as the code
for the transaction which is incorrect since it comes at the end of
the line.

I fixed the bug in this commit.
http://www.codaset.com/cavoegele/ledger/source/master/commit/7d3d4d603c6d2ffce72f2000f4339ecc3260a15c

Raw file here.
http://www.codaset.com/cavoegele/ledger/source/master/raw/7d3d4d603c6d2ffce72f2000f4339ecc3260a15c/contrib/vim/ftplugin/ledger.vim

On Sep 9, 11:32 am, Chad Voegele <[email protected]> wrote:
> Everything is working great! Keep up the good work!
>
> Chad
>
> On Sep 8, 4:33 pm, Johann Klähn <[email protected]> wrote:
>
>
>
>
>
>
>
> > > I hope you will find my changes useful.
>
> > Good idea indeed! I just pushed some changes, so try it out:
> >  http://github.com/kljohann/ledger/commits/vim
>
> > FYI – The function is now used like this:
> >   call LedgerToggleTransactionState(line('.'), ' *?')
> > See this commit 
> > message:http://github.com/kljohann/ledger/commit/6c0ccd5ffd0a9ac1f97adeca1dc2...
>
> > Johann

Reply via email to