Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

When jump-labels are specified with `--jump-labels=` way, validation was not carried out.

authored by Hiroki Konishi · committed by GitHub · parent b57e6cf · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:src/options.go+1 added
1301 unmodified lines
1302 } else if match, value := optString(arg, "--hscroll-off="); match {1303 opts.HscrollOff = atoi(value)1304 } else if match, value := optString(arg, "--jump-labels="); match {1305 opts.JumpLabels = value1306 validateJumpLabels = true1307 } else {1308 errorExit("unknown option: " + arg)1309 }1310 }
81 unmodified lines