Browse files

why ruby...

  • Loading branch information...
1 parent a0fddf9 commit 55bc78db701de17524ea34c9d66ff2e8d210cc5d @mattn mattn committed with May 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoload/gist.vim
View
4 autoload/gist.vim
@@ -1,7 +1,7 @@
"=============================================================================
" File: gist.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
-" Last Change: 05-May-2012.
+" Last Change: 11-May-2012.
" Version: 6.5
" WebPage: http://github.com/mattn/gist-vim
" License: BSD
@@ -313,7 +313,7 @@ endfunction
function! s:get_current_filename(no)
let filename = expand('%:t')
if len(filename) == 0 && &ft != ''
- let pair = filter(items(s:extmap), 'v:val[1] == "ruby"')
+ let pair = filter(items(s:extmap), 'v:val[1] == &ft')
if len(pair) > 0
let filename = printf('gistfile%d%s', a:no, pair[0][0])
endif

0 comments on commit 55bc78d

Please sign in to comment.