File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 80
80
# ' * `run` is an R expression, that is potentially clickable if the terminal
81
81
# ' supports ANSI hyperlinks to runnable code (e.g. RStudio).
82
82
# ' It supports link text. See [links] for more about cli hyperlinks.
83
+ # ' * `str` for a double quoted string escaped by [base::encodeString()].
83
84
# ' * `strong` for strong importance.
84
85
# ' * `topic` is a help page of a _ropic_.
85
86
# ' If the terminal supports ANSI hyperlinks to help pages (e.g. RStudio),
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ get_diff_chunks <- function(lcs, context = 3L) {
167
167
168
168
# chunk starts at operation number sum(length) before it, plus 1, but
169
169
# at the end we change this to include the context chunks are well
170
- chunks $ op_begin <- c(0 , cumsum(runs $ length ))[which(runs $ values )] + 1
170
+ chunks $ op_begin <- c(0 , cumsum(runs $ lengths ))[which(runs $ values )] + 1
171
171
chunks $ op_length <- runs $ lengths [runs $ values ]
172
172
173
173
# `old` positions are from `old_off`, but need to fix the boundaries
You can’t perform that action at this time.
0 commit comments