fix: don't zeroing provided start position by the end zero position

This commit is contained in:
Andrew Hlynskyi 2021-03-08 20:33:31 +02:00
parent f3910c649e
commit 1769d1459d

View file

@ -2294,7 +2294,6 @@ void ts_query_cursor_set_byte_range(
uint32_t end_byte
) {
if (end_byte == 0) {
start_byte = 0;
end_byte = UINT32_MAX;
}
self->start_byte = start_byte;
@ -2307,7 +2306,6 @@ void ts_query_cursor_set_point_range(
TSPoint end_point
) {
if (end_point.row == 0 && end_point.column == 0) {
start_point = POINT_ZERO;
end_point = POINT_MAX;
}
self->start_point = start_point;