Menu

#76 "set RightContext n character" is off by 1

TODO-3.5
closed-fixed
nobody
CQP (6)
5
2022-03-31
2022-03-31
No

"set RightContext 1 character" does not show any characters to the right. This holds true for "set Context 1 character"; in general, "set RightContext n character" shows n-1 characters.

"set LeftContext 1 character" (and the result of "set Context 1 character" for the lhs) behaves as expected, as does "set (Left|Right)?Context n word".

PS apparently I absolutely have to select milestone and priority … sorry if it's the wrong ones!

Discussion

  • Stephanie Evert

    Stephanie Evert - 2022-03-31

    Reason: the token separator between match and co-text is included in the character count for the right context size, but excluded from the count for the left context size.

    Seems wrong to me.

     
  • Andrew Hardie

    Andrew Hardie - 2022-03-31

    This sounds suspiciously like something that is my fault.

    Stephanie - do you want me to take this one?

     
  • Stephanie Evert

    Stephanie Evert - 2022-03-31
    • labels: --> CQP
    • status: open --> closed-fixed
     

Log in to post a comment.