Fix check for b:fireplace_ns

Closes #133.
This commit is contained in:
Tim Pope 2014-02-05 10:19:01 -05:00
parent 5a86ec2c81
commit d3e6bd34ae

View File

@ -1135,7 +1135,7 @@ endfunction
function! fireplace#ns(...) abort
let buffer = a:0 ? a:1 : s:buf()
if getbufvar(buffer, 'fireplace_ns')
if !empty(getbufvar(buffer, 'fireplace_ns'))
return getbufvar(buffer, 'fireplace_ns')
endif
let head = getbufline(buffer, 1, 500)