Skip to content

Commit 716437d

Browse files
committed
Avoid error when no global map
Closes tpope#485
1 parent 9ee6187 commit 716437d

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
@@ -5297,7 +5297,7 @@ function! s:set_path_options() abort
52975297
let delegate = ''
52985298
if exists(':chistory')
52995299
let cfilemap = maparg('<Plug><cfile>', 'c', 0, 1)
5300-
if cfilemap.expr && cfilemap.buffer && cfilemap.rhs !~# 'rails#\|Ruby'
5300+
if get(cfilemap, 'buffer') && cfilemap.expr && cfilemap.rhs !~# 'rails#\|Ruby'
53015301
let delegate = string(maparg('<Plug><cfile>', 'c'))
53025302
endif
53035303
endif

0 commit comments

Comments
 (0)