Skip to content

Commit f9f6600

Browse files
committed
Tweak sig
1 parent eb71d54 commit f9f6600

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

R/expect-match.R

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,10 @@ expect_match_ <- function(
144144
}
145145

146146
# Adapted from print.ellmer_prompt
147-
show_text <- function(
148-
x,
149-
matches = rep(TRUE, length(x)),
150-
...,
151-
max_items = 20,
152-
max_lines = max_items * 25
153-
) {
147+
show_text <- function(x, matches = NULL, max_items = 20, max_lines = NULL) {
148+
matches <- matches %||% rep(TRUE, length(x))
149+
max_lines <- max_lines %||% (max_items * 25)
150+
154151
n <- length(x)
155152
n_extra <- length(x) - max_items
156153
if (n_extra > 0) {

0 commit comments

Comments
 (0)