[gnome-builder] Don't format word slices



commit 1405c47af1f5e20677ef7153fc41783f2a0d6790
Author: Ricardo Silva Veloso <ricvelozo gmail com>
Date:   Fri Dec 27 23:16:23 2019 -0300

    Don't format word slices

 src/libide/gui/gs-markdown.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/gui/gs-markdown.c b/src/libide/gui/gs-markdown.c
index ed8eb30d7..c62fc4021 100644
--- a/src/libide/gui/gs-markdown.c
+++ b/src/libide/gui/gs-markdown.c
@@ -227,7 +227,8 @@ retry:
                return found;
 
        /* end of the string, always valid */
-       if (*(found-1) == ' ' && *(found+1) == ' ') {
+       if ((*(found-1) == ' ' && *(found+1) == ' ') ||
+           (*(found-1) != ' ' && *(found+1) != ' ')) {
                haystack_new = found+1;
                goto retry;
        }


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