Skip to content

Commit

Permalink
Merge pull request #321 from carpentries/fix-set-config
Browse files Browse the repository at this point in the history
fix fencepost bug in set_dropdown
  • Loading branch information
zkamvar authored Jul 12, 2022
2 parents 5192bac + 7dfed71 commit c065621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/set_dropdown.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ set_config <- function(pairs = NULL, create = FALSE, path = ".", write = FALSE)
if (create) {
appends <- what == -9L
if (any(appends)) {
start <- length(l) + 1L
end <- start + length(what[!appends])
what[appends] <- seq(from = start, to = end)
start <- length(l)
end <- start + length(what[appends])
what[appends] <- seq(from = start + 1L, to = end)
}
} else {
toss <- what == 0
Expand Down

0 comments on commit c065621

Please sign in to comment.