diff options
| author | jixiufeng <jixiufeng@luojilab.com> | 2019-06-11 14:47:36 +0800 |
|---|---|---|
| committer | jixiufeng <jixiufeng@luojilab.com> | 2019-06-11 14:47:36 +0800 |
| commit | 0128da8b8c8571165386949205dc63cc71167dcb (patch) | |
| tree | cc897e167d364fc3c92da63e4771c0e63b492de7 | |
| parent | db9679d77dda82299f7c3aab79a3f5b0967ddce3 (diff) | |
check buffer-live-p in vterm--filter
| -rw-r--r-- | vterm.el | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -300,10 +300,12 @@ Argument BUFFER the terminal buffer." Then triggers a redraw from the module." (let ((inhibit-redisplay t) - (inhibit-read-only t)) - (with-current-buffer (process-buffer process) - (vterm--write-input vterm--term input) - (vterm--update vterm--term)))) + (inhibit-read-only t) + (buf (process-buffer process))) + (when (buffer-live-p buf) + (with-current-buffer buf + (vterm--write-input vterm--term input) + (vterm--update vterm--term))))) (defun vterm--sentinel (process event) "Sentinel of vterm PROCESS. |
