Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set environment variables in lesskey if one is a prefix of another #473

Closed
gwsw opened this issue Jan 28, 2024 · 2 comments
Closed

Comments

@gwsw
Copy link
Owner

gwsw commented Jan 28, 2024

Steps to reproduce:

  1. Create a lesskey file containing
#env
LESS = -j5
LESSCHARSET = utf8
  1. Run less and type _j.

Expected result: message should say "Position target at screen line 5".
Actual result: message says "Position target at screen line 1".

Removing the LESSCHARSET line makes it work correctly.

@gwsw
Copy link
Owner Author

gwsw commented Jan 29, 2024

Fixed in de6108b.

@gwsw gwsw closed this as completed Jan 29, 2024
@gwsw gwsw reopened this Feb 1, 2024
@gwsw
Copy link
Owner Author

gwsw commented Feb 2, 2024

Reopened because de6108b was reverted due to regression.

@gwsw gwsw closed this as completed in 9ea9003 Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant