Skip to content

Commit

Permalink
use srcfile$wd when going to source for an sldb frame
Browse files Browse the repository at this point in the history
it worked before while emacs and R were started with the same working
directory; this is not always going to be the case.
  • Loading branch information
csrhodes committed Sep 1, 2010
1 parent 1b24056 commit eb27567
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions swank.R
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,8 @@ computeRestartsForEmacs <- function (sldbState) {
if(is.null(srcfile)) {
list(quote(`:error`), "no srcfile")
} else {
filename <- get("filename", srcfile)
list(quote(`:location`),
list(quote(`:file`), filename),
list(quote(`:file`), sprintf("%s/%s", srcfile$wd, srcfile$filename)),
list(quote(`:line`), srcref[[1]], srcref[[2]]-1),
FALSE)
}
Expand Down

0 comments on commit eb27567

Please sign in to comment.