Permalink
Browse files

Fix custom format creation

Closes #12.
  • Loading branch information...
1 parent 5966bb5 commit d01b8083f336b451df618fa623d3b4948ceea19a @tpope committed Feb 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/speeddating.vim
View
@@ -18,7 +18,7 @@ let s:install_dir = expand("<sfile>:p:h:h")
" Utility Functions {{{1
function! s:function(name)
- return function(substitute(a:name,'^s:',matchstr(expand('<sfile>'), '<SNR>\d\+_'),''))
+ return function(substitute(a:name,'^s:',matchstr(expand('<sfile>'), '.*\zs<SNR>\d\+_'),''))
endfunction
" In Vim, -4 % 3 == -1. Let's return 2 instead.

0 comments on commit d01b808

Please sign in to comment.