Skip to content

Commit 75f6233

Browse files
committed
Fix tab complete of :Rpreview
1 parent e9204a4 commit 75f6233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/rails.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,12 +1331,12 @@ endfunction
13311331
function! s:readable_preview_urls(lnum) dict abort
13321332
let urls = []
13331333
let start = self.last_method_line(a:lnum) - 1
1334-
while start > 0 && self.getline(start) =~ '^\s*\%(\%(-\|<%\)#.*\)\=$'
1334+
while start > 0 && self.getline(start) =~ '^\s*\%(\%(-\=\|<%\)#.*\)\=$'
13351335
let urls = s:scanlineforuris(self.getline(start)) + urls
13361336
let start -= 1
13371337
endwhile
13381338
let start = 1
1339-
while start < self.line_count() && self.getline(start) =~ '^\s*\%(#.*\)\=$'
1339+
while start < self.line_count() && self.getline(start) =~ '^\s*\%(\%(-\=\|<%\)#.*\)\=$'
13401340
let urls += s:scanlineforuris(self.getline(start))
13411341
let start += 1
13421342
endwhile

0 commit comments

Comments
 (0)