summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);