File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -604,12 +604,10 @@ it is started."
604604 (dolist (prefix utop-completion-prefixes)
605605 ; ; We need to handle specially prefixes like "List.m" as
606606 ; ; 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 ))))))
607+ (if-let* ((pos (string-match " [^.]*$" prefix nil t ))
608+ ((string-prefix-p (substring prefix pos) argument)))
609+ (push (concat (substring prefix 0 pos) argument) utop-completion)
610+ (throw 'done t )))))
613611 ; ; End of completion
614612 (" completion-stop"
615613 (utop-set-state 'edit )
You can’t perform that action at this time.
0 commit comments