Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 19 Feb 2018 06:22:50 UTC Commit: 9059b5505a359627fe79124a5f7ebc6c6776f0b1 https://github.com/geany/geany-plugins/commit/9059b5505a359627fe79124a5f7ebc...
Log Message: ----------- pohelper: Fix regular expression replacement when no matches are found
Modified Paths: -------------- pohelper/src/gph-plugin.c
Modified: pohelper/src/gph-plugin.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -465,7 +465,7 @@ regex_replace (ScintillaObject *sci, ttf.chrg.cpMax = sci_get_length (sci); ttf.lpstrText = (gchar *) scire;
- if (sci_find_text (sci, SCFIND_REGEXP, &ttf)) { + if (sci_find_text (sci, SCFIND_REGEXP, &ttf) != -1) { sci_set_target_start (sci, (gint) ttf.chrgText.cpMin); sci_set_target_end (sci, (gint) ttf.chrgText.cpMax); sci_replace_target (sci, repl, FALSE);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).