kchmck/vim-coffee-script — pull request #121 by DawidJanczak (2013-04-01 16:57:54+00:00)
Title: Don't modify loop control variable when looking for comments.

Fixes #119 & #120, thanks to @doits, @kikyous and @xqin for initial reports.

The assignment [_, cur] = searchpos(...) modifies cur variable and does not increment it
if no result is found.
Use different variable name for searchpos return value and increase cur
at the end of loop.

Since this is my first time writing VimL please review this thoroughly - I'm pretty sure this is not the perfect solution.
Also I have no idea why this started occurring now - the plugin hasn't been changed recently. Might this be due to change in Vim itself somehow?