Skip to content

Commit

Permalink
--no-other-events and --no-sourcing-events cannot be combined.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Dec 15, 2021
1 parent 3893f8f commit 639214e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/startuptime.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,10 @@ function! startuptime#StartupTime(mods, ...) abort
execute a:mods . ' help startuptime.txt'
return
endif
if !l:options.other_events && !l:options.sourcing_events
throw 'vim-startuptime: '
\ . '--no-other-events and --no-sourcing-events cannot be combined'
endif
if !s:New(l:mods)
throw 'vim-startuptime: couldn''t create new buffer'
endif
Expand Down

0 comments on commit 639214e

Please sign in to comment.