qulogic/libgnt

935d3321f12d
Parents d40e6fa9a537
Children 187ebb88a660
Patch from Josh Davis to correct ellipsization for right-aligned columns.
  • +1 -1
    gnttree.c
  • --- a/gnttree.c Tue Oct 30 09:17:50 2007 +0000
    +++ b/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);