Skip to content

Commit

Permalink
Fix repeat#set calls missing count after d79cfd4
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarnett committed Jul 12, 2015
1 parent 4ff97da commit 654a3d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/commands.vim
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ endfunction
function! s:FormatLinesAndSetRepeat(startline, endline, ...) abort
call call('codefmt#FormatLines', [a:startline, a:endline] + a:000)
let l:cmd = ":FormatLines " . join(a:000, ' ') . "\<CR>"
silent! call repeat#set(l:cmd)
let l:lines_formatted = a:endline - a:startline + 1
silent! call repeat#set(l:cmd, l:lines_formatted)
endfunction

function! s:FormatBufferAndSetRepeat(...) abort
Expand Down

0 comments on commit 654a3d3

Please sign in to comment.