Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit cd9f1ec

Browse files
committed
Don't use SPEC_OPTS to pass line number
Using SPEC_OPTS to pass the line number overrides spec/spec.opts. This was once a desired side effect (as --color wrecked havoc on the quickfix window) but this has long since been rectified.
1 parent e1dd7a5 commit cd9f1ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

autoload/rails.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,11 +1210,11 @@ function! s:readable_default_rake_task(lnum) dict abort
12101210
endif
12111211
elseif t =~ '^spec\>'
12121212
if self.name() =~# '\<spec/spec_helper\.rb$'
1213-
return 'spec SPEC_OPTS='
1213+
return 'spec'
12141214
elseif lnum > 0
1215-
return 'spec SPEC="%:p" SPEC_OPTS=--line='.lnum
1215+
return 'spec SPEC="%:p":'.lnum
12161216
else
1217-
return 'spec SPEC="%:p" SPEC_OPTS='
1217+
return 'spec SPEC="%:p"'
12181218
endif
12191219
elseif t =~ '^test\>'
12201220
let meth = self.last_method(lnum)

0 commit comments

Comments
 (0)