Skip to content

Commit f5d3186

Browse files
committed
Fix :Rails new with %s in 'shellpipe'
Closes tpope#344.
1 parent 5e76384 commit f5d3186

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
@@ -1048,7 +1048,7 @@ function! rails#new_app_command(bang,...) abort
10481048
let temp = tempname()
10491049
try
10501050
if &shellpipe =~# '%s'
1051-
let pipe = s:sub(&shellpipe, '%s', temp, 'g')
1051+
let pipe = s:sub(&shellpipe, '\%s', temp)
10521052
else
10531053
let pipe = &shellpipe . ' ' . temp
10541054
endif

0 commit comments

Comments
 (0)