Skip to content

Commit

Permalink
Fix width
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Jan 8, 2024
1 parent 4145c23 commit 687476d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions autoload/denops_startup_recorder.vim
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ function! denops_startup_recorder#display_events(...) abort
let l:last_time = s:max(map(copy(l:events), { _, v -> v.end }))
let l:ratio = l:tail_length / l:last_time
redraw
echo repeat('', &columns - 1)
echo repeat('', l:width - 1)
echo printf(l:label_format, 'Name', 'Start', 'End', 'Duration')
echo repeat('', &columns - 1)
echo repeat('', l:width - 1)
for l:event in l:events
echo l:Format(l:event) .. ' ' .. s:display_event_bar(l:event, l:ratio, l:tail_length) .. ''
endfor
echo repeat('', &columns - 1)
echo repeat('', l:width - 1)
endfunction

function! s:compare_events(e1, e2) abort
Expand Down
2 changes: 1 addition & 1 deletion plugin/denops_startup_recorder.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ augroup denops_startup_recorder
\ call s:record(expand('<amatch>'))
augroup END

command! DenopsStartupRecorderDisplayEvents call denops_startup_recorder#display_events()
command! -nargs=? DenopsStartupRecorderDisplayEvents call denops_startup_recorder#display_events(<f-args>)

0 comments on commit 687476d

Please sign in to comment.