File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8080# ' * `run` is an R expression, that is potentially clickable if the terminal
8181# ' supports ANSI hyperlinks to runnable code (e.g. RStudio).
8282# ' It supports link text. See [links] for more about cli hyperlinks.
83+ # ' * `str` for a double quoted string escaped by [base::encodeString()].
8384# ' * `strong` for strong importance.
8485# ' * `topic` is a help page of a _ropic_.
8586# ' 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) {
167167
168168 # chunk starts at operation number sum(length) before it, plus 1, but
169169 # 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
171171 chunks $ op_length <- runs $ lengths [runs $ values ]
172172
173173 # `old` positions are from `old_off`, but need to fix the boundaries
You can’t perform that action at this time.
0 commit comments