summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2026-01-05 16:54:53 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2026-01-05 17:26:42 +0100
commit3c4a5ca79ecc937394debba47d61a78051eb7b28 (patch)
treeb5d0d95b658b4b608d7a7d9c90ba2e6067c68602
parent1a147d584f083ed31ab41b85b08698d8f7230f00 (diff)
corfu-reset: Go to end position
-rw-r--r--corfu.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/corfu.el b/corfu.el
index e9570e1..7df2724 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1225,6 +1225,7 @@ there hasn't been any input, then quit."
(pcase-let* ((`(,beg ,end . ,_) completion-in-region--data)
(str (buffer-substring-no-properties beg end)))
(cancel-change-group corfu--change-group)
+ (goto-char end)
(activate-change-group (setq corfu--change-group (prepare-change-group)))
;; Quit when resetting, when input did not change.
(when (equal str (buffer-substring-no-properties beg end))