]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(set_fields): Make code agree with comment:
authorJim Meyering <jim@meyering.net>
Thu, 9 Jan 2003 19:30:22 +0000 (19:30 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 9 Jan 2003 19:30:22 +0000 (19:30 +0000)
Don't merge abutting ranges like 4- and 2-3.  This makes no
difference currently, but is required to support an upcoming change.

src/cut.c

index 97358cb6617d925f75be5ea868ea8ba7eef91234..e0a1cb458c7bbc5a129e5095ecabab72080ccab5 100644 (file)
--- 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;