GNOME Bugzilla – Bug 754883
SearchContext: revalidate match_start and match_end iters when doing a replace()
Last modified: 2016-06-04 15:36:02 UTC
The gtk_source_search_context_replace() function should revalidate the match_start and match_end iters to point to the replacement text boundaries. But doing that is not possible without an API break. So it's for GtkSourceView 4.
Note to myself: fixing this would simplify code in gnome-c-utils lineup-substitution.c. And we don't need to wait GtkSourceView 4, we can create another function and deprecate the previous one. For example with the name gtk_source_search_context_replace2(), like the Linux kernel does for some syscalls.
Done: commit cb8f41adeb71c569b464bfb9fcf0f1346b0a2123 commit 2b5e99b1e2439feb2119dfa80dc81f21605cb9ee commit cf839aca2bdf04fe32e91c643a1153e60db2b658 The last commit deprecates replace().