summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-06-04 06:12:24 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2022-06-04 06:12:24 +0200
commite875b467e2a196ed7e470a593e14bcac4399aeb2 (patch)
tree25818589e33dddbb3530ca0a37a9ff4fd3c2b9f1
parent1820c0e50e500654c715daae3ad8db59550af7b3 (diff)
corfu--auto-post-command: Do not trigger in read-only buffer (Fix #185)
-rw-r--r--corfu.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/corfu.el b/corfu.el
index 8fa8b99..f2f20b4 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1191,6 +1191,7 @@ See `completion-in-region' for the arguments BEG, END, TABLE, PRED."
(setq corfu--auto-timer nil))
(when (and (not completion-in-region-mode)
(not defining-kbd-macro)
+ (not buffer-read-only)
(corfu--match-symbol-p corfu-auto-commands this-command)
(corfu--popup-support-p))
;; NOTE: Do not use idle timer since this leads to unacceptable slowdowns,