Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 48728 | Differences between
and this patch

Collapse All | Expand All

(-)vte.c.orig (-1 / +7 lines)
Lines 8776-8782 Link Here
8776
					  GArray *attributes)
8776
					  GArray *attributes)
8777
{
8777
{
8778
	long col, row, last_space, last_spacecol,
8778
	long col, row, last_space, last_spacecol,
8779
	     last_nonspace, last_nonspacecol;
8779
	     last_nonspace, last_nonspacecol, line_start;
8780
	VteScreen *screen;
8780
	VteScreen *screen;
8781
	struct vte_charcell *pcell = NULL;
8781
	struct vte_charcell *pcell = NULL;
8782
	GString *string;
8782
	GString *string;
Lines 8796-8801 Link Here
8796
		last_space = last_nonspace = -1;
8796
		last_space = last_nonspace = -1;
8797
		last_spacecol = last_nonspacecol = -1;
8797
		last_spacecol = last_nonspacecol = -1;
8798
		attr.row = row;
8798
		attr.row = row;
8799
                line_start = string->len;
8799
		pcell = NULL;
8800
		pcell = NULL;
8800
		do {
8801
		do {
8801
			/* If it's not part of a multi-column character,
8802
			/* If it's not part of a multi-column character,
Lines 8883-8888 Link Here
8883
				g_string_truncate(string, last_nonspace + 1);
8884
				g_string_truncate(string, last_nonspace + 1);
8884
			}
8885
			}
8885
		}
8886
		}
8887
                /* If we found no non-whitespace characters on this line, trim
8888
                 * it, as xterm does. */
8889
                if (last_nonspacecol == -1) {
8890
                	g_string_truncate(string, line_start);
8891
                }
8886
		/* Make sure that the attributes array is as long as the
8892
		/* Make sure that the attributes array is as long as the
8887
		 * string. */
8893
		 * string. */
8888
		if (attributes) {
8894
		if (attributes) {

Return to bug 48728