Skip to content

Commit 5ca2ba9

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 2f57dc1 + 0b3de0f commit 5ca2ba9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

R/cliapp-docs.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
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),

R/diff.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)