Closed jamesaoverton closed 10 years ago
Thanks for this amazing tool! I've never worked with Vim script before, but I think I've found a small bug and a fix.
I've got 5a86ec2c81 installed and working. I'm trying to use the fireplace_ns var to override ns detection in fireplace#ns(). I set the var like so:
fireplace_ns
fireplace#ns()
:let b:fireplace_ns='foo.core'
When I insert this before line 1138 of fireplace.vim I see the result 'foo.core' that I expect:
fireplace.vim
echo getbufvar(buffer, 'fireplace_ns')
But the conditional always fails, so fireplace_ns is not returned. I tried modifying the condition like so:
if getbufvar(buffer, 'fireplace_ns') != ''
and now fireplace_ns is returned (when set) as expected.
Perfect. Thanks!
Thanks for this amazing tool! I've never worked with Vim script before, but I think I've found a small bug and a fix.
I've got 5a86ec2c81 installed and working. I'm trying to use the
fireplace_ns
var to override ns detection infireplace#ns()
. I set the var like so:When I insert this before line 1138 of
fireplace.vim
I see the result 'foo.core' that I expect:But the conditional always fails, so
fireplace_ns
is not returned. I tried modifying the condition like so:and now
fireplace_ns
is returned (when set) as expected.