Fix bug of validation of jump-labels (#1875)

When jump-labels are specified with `--jump-labels=` way, validation was
not carried out.
This commit is contained in:
Hiroki Konishi 2020-02-16 15:45:59 +09:00 committed by GitHub
parent b57e6cff7e
commit d61ac32d7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1303,6 +1303,7 @@ func parseOptions(opts *Options, allArgs []string) {
opts.HscrollOff = atoi(value)
} else if match, value := optString(arg, "--jump-labels="); match {
opts.JumpLabels = value
validateJumpLabels = true
} else {
errorExit("unknown option: " + arg)
}