Permalink
Browse files

Oops, search() returns a zero on failure

  • Loading branch information...
1 parent 35fe523 commit 0737319060e1177c29741c7e67a520001fb742e1 @AndrewRadev committed Apr 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/coffee_tools.vim
View
2 autoload/coffee_tools.vim
@@ -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

0 comments on commit 0737319

Please sign in to comment.