Skip to content
This repository was archived by the owner on Dec 24, 2023. It is now read-only.

Conversation

@rtxa
Copy link

@rtxa rtxa commented Apr 5, 2020

What I did:

  • Substract one to the count in last_range_idx = m_textRanges.Count() to avoid going out of bounds from the array.
  • Put last_range_idx = m_textRanges.Count() - 1 down of m_textRanges.AddToTail(range), so it can get the right count.
  • Fixed the start position of the name in if (*buf2 == 2 && pos == 0).
  • Removed position decreasing for name start in the case when colors are detected. It was messing with the real position.

It requires more testing, but for now it works fine.

What I did:
- Substract one to the count in `last_range_idx = m_textRanges.Count()` to avoid going out of bounds from the array.
- Put `last_range_idx = m_textRanges.Count() - 1` down of `m_textRanges.AddToTail(range)`, so it can get the right count.
- Fixed the start position of the name in `if (*buf2 == 2 && pos == 0)`.
- Removed position decreasing for name start in the case when colors are detected. It was messing with the real position.
@tmp64 tmp64 merged commit dbafe0d into tmp64:master Apr 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants