From 1769d1459dcfb5f5fb2e04efbc1e457ab7a1b07d Mon Sep 17 00:00:00 2001 From: Andrew Hlynskyi Date: Mon, 8 Mar 2021 20:33:31 +0200 Subject: [PATCH] fix: don't zeroing provided start position by the end zero position --- lib/src/query.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/src/query.c b/lib/src/query.c index e0793011..8f7f644c 100644 --- a/lib/src/query.c +++ b/lib/src/query.c @@ -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;