summaryrefslogtreecommitdiff
path: root/corfu.el
diff options
context:
space:
mode:
Diffstat (limited to 'corfu.el')
-rw-r--r--corfu.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/corfu.el b/corfu.el
index 96aafa2..079a640 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1024,6 +1024,7 @@ there hasn't been any input, then quit."
(defun corfu--completion-in-region (&rest args)
"Corfu completion in region function passing ARGS to `completion--in-region'."
+ (barf-if-buffer-read-only)
(if (not (display-graphic-p))
;; XXX Warning this can result in an endless loop when `completion-in-region-function'
;; is set *globally* to `corfu--completion-in-region'. This should never happen.