]> git.gir.st - VimFx.git/commit
Fix `injectHints` might return undefined markers
authorSimon Lydell <simon.lydell@gmail.com>
Mon, 29 Jul 2013 18:14:53 +0000 (20:14 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Mon, 29 Jul 2013 18:14:53 +0000 (20:14 +0200)
commit2eefb4e4b1b6ee5a17ebaa9b27982cec93e6851e
tree2b9c495495a665e8682ec5646df749a553b699e4
parentd9990a7015473053161a836ff75707c57d2309c9
Fix `injectHints` might return undefined markers

The `inner` function of `injectHints` now returns an empty array instead
of undefined if no markers could be produced, since all results of the
`inner` function are recursively concatenated. VimFx seems to have worked
well even though some entries in the array of markers returned by
`injectHints` could be undefined. However, on the Huffman branch, the
undefined entries sometimes caused a TypeError to be thrown, which
eventually resulted in that none of the hint markers were given any hints.
extension/packages/hints.coffee
Imprint / Impressum