[gedit-plugins] Fix regression introduced



commit 0fe1a0e26359fecd579da11bd761fcc6554d19a9
Author: Jordi Mas <jmas softcatala org>
Date:   Mon Feb 22 21:57:12 2021 +0100

    Fix regression introduced

 plugins/findinfiles/job.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/findinfiles/job.vala b/plugins/findinfiles/job.vala
index 5876571..bad47fc 100644
--- a/plugins/findinfiles/job.vala
+++ b/plugins/findinfiles/job.vala
@@ -251,7 +251,7 @@ class FindJob {
             var line_length = nl - ptr;
 
             // Check if the match is within this line
-            if (line_start >= span.from) {
+            if (span.from >= line_start && span.to < line_start + line_length) {
                 // Update the bookmark
                 bookmark.line_number = line_count;
                 bookmark.line_start = line_start;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]