gwsw / less

Less - text pager
http://greenwoodsoftware.com/less
Other
552 stars 87 forks source link

`-#`/`--shift` option no longer seems to work #554

Open jaminthorns opened 1 month ago

jaminthorns commented 1 month ago

Ever since upgrading from less-643 to less-661, I noticed that the -#/--shift option no longer seems to have any effect, and instead the default value of .5 is used. The functionality still works properly as I can set the option from within less with the -- command.

Steps to Reproduce

gwsw commented 1 month ago

Note: this failed only if the parameter begins with a dot. less --shift=4 would work correctly.

Fixed in 5701f020f94fb72be809f9465265fc11d3d990b0.

jaminthorns commented 1 month ago

Ah, I didn't think to test any non-dot-prefixed values. Thank you!