Skip to content

Commit

Permalink
tweak again
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@28249 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Feb 5, 2004
1 parent 66b8913 commit fffcb83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/library/graphics/R/screen.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ close.screen <- function(n, all.screens=FALSE)
"sp.valid.screens"), dev.cur(), sep=":"), envir=.SSenv)
invisible()
} else {
.SSassign("sp.valid.screens",
valid.screens[-sort(match(n, valid.screens))])
valid.screens <- valid.screens[-sort(match(n, valid.screens))]
.SSassign("sp.valid.screens", valid.screens)
temp <- .SSget("sp.cur.screen")
if (temp %in% n) {
poss <- valid.screens[valid.screens>temp]
temp <- if(length(poss)) min(poss) else min(valid.screens)
}
screen(temp, new=FALSE)
.SSget("sp.valid.screens")
valid.screens
}
}

0 comments on commit fffcb83

Please sign in to comment.