Skip to content

Commit

Permalink
Oops, search() returns a zero on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Apr 4, 2012
1 parent 35fe523 commit 0737319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/coffee_tools.vim
Expand Up @@ -103,7 +103,7 @@ endfunction

function! coffee_tools#FunctionTextObject(type)
let function_start = search('\((.\{-})\)\=\s*[-=]>$', 'Wbc')
if function_start < 0
if function_start <= 0
return
endif

Expand Down

0 comments on commit 0737319

Please sign in to comment.