We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3322ada commit ae644e9Copy full SHA for ae644e9
src/top/utop.el
@@ -604,12 +604,10 @@ it is started."
604
(dolist (prefix utop-completion-prefixes)
605
;; We need to handle specially prefixes like "List.m" as
606
;; the responses from utop don't include the module prefix.
607
- (let ((prefix (if (string-match-p "\\." prefix)
608
- (cadr (split-string prefix "\\."))
609
- prefix)))
610
- (when (string-prefix-p prefix argument)
611
- (push argument utop-completion)
612
- (throw 'done t))))))
+ (if-let* ((pos (string-match "[^.]*$" prefix))
+ ((string-prefix-p (substring prefix pos) argument)))
+ (push (concat (substring prefix 0 pos) argument) utop-completion)
+ (throw 'done t)))))
613
;; End of completion
614
("completion-stop"
615
(utop-set-state 'edit)
0 commit comments