diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2021-11-23 03:18:49 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2021-11-23 03:18:49 +0100 |
| commit | f1e1abfece208c5f4a0228adb424c9531d1bebb5 (patch) | |
| tree | 1ae0c3d078650dc319e7c504cf093b032599f0f1 | |
| parent | 4b2fd9ed2b0ce841113a835a0ad163fc1cfe7084 (diff) | |
Barf if buffer is read only
| -rw-r--r-- | corfu.el | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. |
