GeezerVison is showing github.com — Merge remote-tracking branch 'origin/main' · TimTaylor/cli@5ca2ba9
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: R/cliapp-docs.R +1Lines changed: 1 addition & 0 deletions | 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), |
|
Collapse file
Copy file name to clipboardExpand all lines: R/diff.R +1-1Lines changed: 1 addition & 1 deletion | 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 |
|