Skip to content
Snippets Groups Projects
Commit e32ec7c0 authored by Raymond Toy's avatar Raymond Toy
Browse files

Return NIL if the prefix isn't a prefix of any name instead of

signaling an error.
parent 8895c013
Branches
Tags
No related merge requests found
......@@ -1306,6 +1306,9 @@
do (push (concatenate 'string prefix-match x) names))
(when completep
(push prefix-match names))
(when (zerop (length prefix-match))
;; The prefix isn't a prefix for anything, so return nil
(return-from unicode-complete nil))
(flet ((han-or-cjk-completion (prefix-match prefix dictionary)
(let* ((prefix-tail (subseq prefix-match
(min (length prefix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment