Commit 670a3192 authored by Jamie McCracken's avatar Jamie McCracken

improved snippet generation

parent 75b91dc7
2006-11-20 Jamie McCracken <jamiemcc at gnome org>
* updateded desktop files
* fixed t-s-t to let back/forward buttons to remain sensitive if applicable
* fixed resizing of columns in t-s-t
* improved snippet generation
2006-11-19 Jamie McCracken <jamiemcc at gnome org>
* fixed snippets so that multiple terms are highlighted
......
......@@ -2629,8 +2629,6 @@ tracker_get_snippet (const char *txt, char **terms, int length)
snip = g_strndup (ptr, end_ptr - ptr);
//g_print ("snip is %s\n", snip);
esc_snip = g_markup_escape_text (snip, strlen (snip));
g_free (snip);
......@@ -2652,7 +2650,7 @@ tracker_get_snippet (const char *txt, char **terms, int length)
}
if (ptr +1) {
ptr = g_utf8_prev_char (ptr);
ptr = g_utf8_next_char (ptr);
}
return g_strndup (txt, ptr - txt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment