Skip to content

Commit d01b808

Browse files
committed
Fix custom format creation
Closes #12.
1 parent 5966bb5 commit d01b808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/speeddating.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let s:install_dir = expand("<sfile>:p:h:h")
1818
" Utility Functions {{{1
1919

2020
function! s:function(name)
21-
return function(substitute(a:name,'^s:',matchstr(expand('<sfile>'), '<SNR>\d\+_'),''))
21+
return function(substitute(a:name,'^s:',matchstr(expand('<sfile>'), '.*\zs<SNR>\d\+_'),''))
2222
endfunction
2323

2424
" In Vim, -4 % 3 == -1. Let's return 2 instead.

0 commit comments

Comments
 (0)