changeset 21272:f869796bf505

Patch from Josh Davis to correct ellipsization for right-aligned columns.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 30 Oct 2007 09:32:10 +0000
parents ca16de222b76
children 6e666ae6f68e
files COPYRIGHT finch/libgnt/gnttree.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Tue Oct 30 09:17:50 2007 +0000
+++ b/COPYRIGHT	Tue Oct 30 09:32:10 2007 +0000
@@ -92,6 +92,7 @@
 Michael Culbertson
 Steven Danna
 Chris Davies
+Josh Davis
 Martijn Dekker
 Vinicius Depizzol
 Philip Derrin
--- a/finch/libgnt/gnttree.c	Tue Oct 30 09:17:50 2007 +0000
+++ b/finch/libgnt/gnttree.c	Tue Oct 30 09:32:10 2007 +0000
@@ -368,7 +368,7 @@
 		}
 
 		if (RIGHT_ALIGNED(tree, i) && len < tree->columns[i].width) {
-			g_string_append_printf(string, "%*s", width - len, "");
+			g_string_append_printf(string, "%*s", width - len - cut, "");
 		}
 
 		text = gnt_util_onscreen_width_to_pointer(display, len - fl, NULL);