Skip to content

Commit

Permalink
Fixes #78
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed May 2, 2024
1 parent f366992 commit 4c91123
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/chattr.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ chattr <- function(prompt = NULL,
while (ch_r_state() == "busy") {
curr_text <- ch_r_output()
ret <- c(ret, curr_text)
ide_paste_text(curr_text)
if(ui_current() == "markdown") {
cat(curr_text)
} else {
ide_paste_text(curr_text)
}
}
error <- ch_r_error()
if (!is.null(error)) {
Expand Down

0 comments on commit 4c91123

Please sign in to comment.