summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2024-03-08 17:09:40 -0500
committerJohn Turner <jturner.usa@gmail.com>2024-03-09 14:56:52 -0500
commit6ca351607c63dcc54b7f02c25823c9fe4a457247 (patch)
tree7623875686d7728fb28a8c9766b31dd301e0829e
parent8b1e141fcddb0fcadd34970845b5401a93166433 (diff)
downloadwgetpaste.el-6ca351607c63dcc54b7f02c25823c9fe4a457247.tar.gz
fix hook that tries to erase the stdout-buffer before its created
-rw-r--r--wgetpaste.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgetpaste.el b/wgetpaste.el
index 55b6ca0..f08b96f 100644
--- a/wgetpaste.el
+++ b/wgetpaste.el
@@ -73,7 +73,7 @@
;; hooks
(defun wgetpaste-clear-stdout-buffer ()
- (with-current-buffer wgetpaste-stdout-buffer
+ (with-current-buffer (get-buffer-create wgetpaste-stdout-buffer)
(erase-buffer)))
(defun wgetpaste-save-url-to-clipboard ()