summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;