pref: fix crash in 'v run' without arguments
parent
d22609051a
commit
fe249cd1f8
|
@ -271,7 +271,7 @@ pub fn parse_args(args []string) (&Preferences, string) {
|
||||||
res.path = command
|
res.path = command
|
||||||
} else if command == 'run' {
|
} else if command == 'run' {
|
||||||
res.is_run = true
|
res.is_run = true
|
||||||
if command_pos > args.len {
|
if command_pos + 2 > args.len {
|
||||||
eprintln('v run: no v files listed')
|
eprintln('v run: no v files listed')
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue