Skip to content

Commit 48c9dcd

Browse files
committed
Specify 'startup line' when file queried for that line.
1 parent 394cc0a commit 48c9dcd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

autoload/startuptime.vim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,12 @@ endfunction
459459

460460
function! startuptime#GotoFile() abort
461461
let l:line = line('.')
462-
let l:nofile = 'header'
463-
if has_key(b:startuptime_item_map, l:line)
462+
let l:nofile = 'line'
463+
if l:line ==# 1
464+
let l:nofile = 'startup line'
465+
elseif l:line ==# 2
466+
let l:nofile = 'header'
467+
elseif has_key(b:startuptime_item_map, l:line)
464468
let l:item = b:startuptime_item_map[l:line]
465469
if l:item.type ==# s:sourcing_event_type
466470
let l:file = substitute(l:item.event, '^sourcing ', '', '')

0 commit comments

Comments
 (0)