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

Expand $LINENO to a correct value in prompt string #381

Closed
wants to merge 1 commit into from

Commits on Jul 6, 2024

  1. Guarantee line number counting with large character index

    When you want to get the line number for the last character of the code,
    counting the number of characters in the code just to create a correct
    Location object is a waste of time. The existing implementation of the
    `Variable::expand` function allows the `location.range.start` to be
    greater than the character count of the code, in which case the line
    number is calculated as if the range were the end of the code. This
    commit guarantees this behavior by adding a comment to the function
    documentation.
    magicant committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    212eeeb View commit details
    Browse the repository at this point in the history