start,n for a hunk header; start is the line before the hunk when it is empty.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | start |
first line of the hunk |
||
| integer, | intent(in) | :: | n |
number of lines in the hunk |
pure function range_text(start, n) result(text) !! `start,n` for a hunk header; `start` is the line before the hunk when it is empty. integer, intent(in) :: start !! first line of the hunk integer, intent(in) :: n !! number of lines in the hunk character(len=:), allocatable :: text if (n == 0) then text = to_s(start - 1)//',0' else if (n == 1) then text = to_s(start) else text = to_s(start)//','//to_s(n) end if end function range_text