summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-06 16:54:58 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-06 16:54:58 +0100
commit6a0f9d68555e0506a6aee42a5e25634196faf5a6 (patch)
treecbf546bccbd397a9af0811a1031e20f05af4d878
parent1885b1e0bd6576b1ee467009be5bf202f35c3791 (diff)
fix bug skipping first file
-rw-r--r--src/search.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.cpp b/src/search.cpp
index 9946423..fe039bd 100644
--- a/src/search.cpp
+++ b/src/search.cpp
@@ -316,7 +316,7 @@ keep_going:;
goto finish_early;
ts_mutex_lock(&new_result->files.mutex);
- int read_cursor = new_result->file_list_read_cursor+1;
+ int read_cursor = new_result->file_list_read_cursor;
if (read_cursor >= new_result->files.length) {
ts_mutex_unlock(&new_result->files.mutex);