Skip to content

Commit

Permalink
fix: remove time argument to accept-process-output
Browse files Browse the repository at this point in the history
Setting the time argument causes the command execution to fail for long command. This is the result of `tdoe`:

```elisp
Debugger entered--Lisp error: (error "Selecting deleted buffer")
  comint-redirect-preoutput-filter("@\n")
  comint-redirect-filter(comint-output-filter #<process BQN> "@\n")
  apply(comint-redirect-filter comint-output-filter (#<process BQN> "@\n"))
  #f(advice comint-redirect-filter :around comint-output-filter)(#<process BQN> "@\n")
```

By removing it, the error disappears.
  • Loading branch information
Panadestein authored and AndersonTorres committed Jun 23, 2024
1 parent 23fd9db commit b2a524b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bqn-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ With non-nil prefix ARG, switch to the process buffer."
;; Wait for the process to complete
(with-current-buffer (process-buffer process)
(while (and (null comint-redirect-completed)
(accept-process-output process 0.1))))
(accept-process-output process))))
(goto-char (point-min))
;; Get output while skipping the next prompt
(when bqn-font-lock-eval
Expand Down

0 comments on commit b2a524b

Please sign in to comment.