summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-09 19:30:22 +0000
committerJim Meyering <jim@meyering.net>2003-01-09 19:30:22 +0000
commite66ab953ef86dc10ab33bef1158df9ae921d587d (patch)
tree77ccf0d5d5bb2c4656501be84711a706f010fd78 /src
parentbc4948193399ed85cac11ea9c2c1e9a2605e4192 (diff)
downloadcoreutils-e66ab953ef86dc10ab33bef1158df9ae921d587d.tar.xz
(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.
Diffstat (limited to 'src')
-rw-r--r--src/cut.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cut.c b/src/cut.c
index 97358cb66..e0a1cb458 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;