Include byte offsets in TSRange

Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
This commit is contained in:
Max Brunsfeld 2018-06-20 11:46:44 -07:00
parent be81989de2
commit 6632cb3d5c
5 changed files with 35 additions and 33 deletions

View file

@ -73,7 +73,7 @@ void verify_changed_ranges(const ScopeSequence &old_sequence, const ScopeSequenc
bool found_containing_range = false;
for (size_t j = 0; j < range_count; j++) {
TSRange range = ranges[j];
if (range.start <= current_position && current_position <= range.end) {
if (range.start_point <= current_position && current_position <= range.end_point) {
found_containing_range = true;
break;
}