Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
ac4dd77e by wurstsalat at 2024-10-02T19:24:32+02:00
fix: Debug Console: Fix search occurrence position

Fixes #11999

- - - - -


1 changed file:

- gajim/gtk/debug_console.py


Changes:

=====================================
gajim/gtk/debug_console.py
=====================================
@@ -421,6 +421,8 @@ def _on_search_finished(
 
         occurrence_positon = self._search_context.get_occurrence_position(
             match_start, match_end)
+        if occurrence_positon == -1:
+            occurrence_positon = 1
         self._ui.search_results_label.set_text(
             _('%s of %s') % (occurrence_positon, occurrences_count)
         )



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/ac4dd77e1836b440aec6928e2d5de6b2ab17a16f

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/ac4dd77e1836b440aec6928e2d5de6b2ab17a16f
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to