44d4f1d299
[READY] Use codepoint offsets in identifier functions `CurrentIdentifierFinished` and `LastEnteredCharIsIdentifierChar` incorrectly use byte offsets with unicode lines (`CurrentColumn` returns a byte offset and `CurrentLineContents` a unicode string). This leads to weird bugs when there is a non-ASCII character on the current line: ![unicode-identifier-bug](https://user-images.githubusercontent.com/10026824/27256590-34b27c8c-53ba-11e7-8032-b98f0c7e0b14.gif) This is fixed by converting byte offsets to codepoint ones through the `ByteOffsetToCodepointOffset` function. This changes the behavior of these two functions when the current column position is invalid. Both functions returned false in that case. They now return as if the current column were at the end of the line. In practice, this doesn't really matter since the position of the current column should always be valid. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2690) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
client | ||
tests | ||
__init__.py | ||
base.py | ||
buffer.py | ||
diagnostic_filter.py | ||
diagnostic_interface.py | ||
omni_completer.py | ||
paths.py | ||
setup.py | ||
syntax_parse.py | ||
unsafe_thread_pool_executor.py | ||
vimsupport.py | ||
youcompleteme.py |