Skip to content

Commit

Permalink
why ruby...
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn authored and baopham committed May 22, 2012
1 parent a0fddf9 commit 55bc78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 55bc78d

Please sign in to comment.