[gnome-builder/wip/chergert/grep] grep: skip past empty text
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/grep] grep: skip past empty text
- Date: Sat, 27 Oct 2018 01:18:09 +0000 (UTC)
commit 945ae3910628c77418a2d343b4e1565216031699
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 26 18:17:46 2018 -0700
grep: skip past empty text
src/plugins/grep/gbp-grep-panel.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/plugins/grep/gbp-grep-panel.c b/src/plugins/grep/gbp-grep-panel.c
index c91d60db7..6e171f73e 100644
--- a/src/plugins/grep/gbp-grep-panel.c
+++ b/src/plugins/grep/gbp-grep-panel.c
@@ -110,6 +110,8 @@ match_data_func (GtkCellLayout *layout,
* the lifetime of the GValue here. Let's us avoid
* an unnecessary copy.
*/
+ while (*tmp && g_unichar_isspace (g_utf8_get_char (tmp)))
+ tmp = g_utf8_next_char (tmp);
g_value_set_static_string (&dst, tmp);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]