From: blacknon Date: Mon, 20 Jun 2022 13:56:00 +0000 (+0900) Subject: update. Since the specified column is shifted by one column, subtract it. X-Git-Tag: v2.39-rc1~596^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=553151462bd85166758b14b4b98f3e5462b9b398;p=thirdparty%2Futil-linux.git update. Since the specified column is shifted by one column, subtract it. --- diff --git a/text-utils/column.c b/text-utils/column.c index cb40d8f26c..a4ba24dcd3 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -358,7 +358,7 @@ static void apply_columnflag_from_list(struct column_control *ctl, const char *l /* parse range (N-M) */ if (strchr(*one, '-') && parse_range(*one, &low, &up, 0) == 0) { for (; low <= up; low++) { - cl = scols_table_get_column(ctl->tab, low); + cl = scols_table_get_column(ctl->tab, low-1); if (cl) column_set_flag(cl, flag); }