Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'en/double-semicolon-fix' into maint
[gitweb.git]
/
line-range.c
diff --git
a/line-range.c
b/line-range.c
index 323399d16cfa828adce913c9ff994e860ce2e7a5..232c3909ec27d3079e9228d0fcf561ce6a349754 100644
(file)
--- a/
line-range.c
+++ b/
line-range.c
@@
-47,7
+47,7
@@
static const char *parse_loc(const char *spec, nth_line_fn_t nth_line,
else if (!num)
*ret = begin;
else
- *ret = begin + num;
+ *ret = begin + num
> 0 ? begin + num : 1
;
return term;
}
return spec;