Skip to content

Commit 639214e

Browse files
committed
--no-other-events and --no-sourcing-events cannot be combined.
1 parent 3893f8f commit 639214e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoload/startuptime.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,10 @@ function! startuptime#StartupTime(mods, ...) abort
11051105
execute a:mods . ' help startuptime.txt'
11061106
return
11071107
endif
1108+
if !l:options.other_events && !l:options.sourcing_events
1109+
throw 'vim-startuptime: '
1110+
\ . '--no-other-events and --no-sourcing-events cannot be combined'
1111+
endif
11081112
if !s:New(l:mods)
11091113
throw 'vim-startuptime: couldn''t create new buffer'
11101114
endif

0 commit comments

Comments
 (0)