# HG changeset patch # User Sadrul Habib Chowdhury # Date 1193736730 0 # Node ID f869796bf505f29ef74a34ec91eaa5132be7aea2 # Parent ca16de222b768e38f172896e090664c08e30899f Patch from Josh Davis to correct ellipsization for right-aligned columns. diff -r ca16de222b76 -r f869796bf505 COPYRIGHT --- 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 diff -r ca16de222b76 -r f869796bf505 finch/libgnt/gnttree.c --- 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);