Skip to content

Commit 2c562c2

Browse files
committed
Fix completion of tasks with [] arguments
1 parent 721bd23 commit 2c562c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ function! s:app_rake_tasks() dict abort
11661166
if v:shell_error != 0
11671167
return []
11681168
endif
1169-
call map(lines,'matchstr(v:val,"^rake\\s\\+\\zs\\S*")')
1169+
call map(lines,'matchstr(v:val,"^rake\\s\\+\\zs[^][ ]\\+")')
11701170
call filter(lines,'v:val != ""')
11711171
call self.cache.set('rake_tasks',s:uniq(['default'] + lines))
11721172
endif

0 commit comments

Comments
 (0)