From: Jim Meyering Date: Thu, 9 Jan 2003 19:30:22 +0000 (+0000) Subject: (set_fields): Make code agree with comment: X-Git-Tag: v4.5.5~302 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e66ab953ef86dc10ab33bef1158df9ae921d587d;p=thirdparty%2Fcoreutils.git (set_fields): Make code agree with comment: Don't merge abutting ranges like 4- and 2-3. This makes no difference currently, but is required to support an upcoming change. --- diff --git a/src/cut.c b/src/cut.c index 97358cb661..e0a1cb458c 100644 --- a/src/cut.c +++ b/src/cut.c @@ -304,7 +304,7 @@ set_fields (const char *fieldstr) /* No, the new sequence starts before the old. Does the old range going to end of line extend into the new range? */ - if (value + 1 >= eol_range_start) + if (eol_range_start <= value) { /* Yes. Simply move the end of line marker. */ eol_range_start = initial;