branch: externals/minuet
commit 664e00eac67f5761bdbee8a80cb39bf2a5fca21d
Author: Milan Glacier <[email protected]>
Commit: Milan Glacier <[email protected]>

    fix: minor code cleanup.
---
 minuet.el | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/minuet.el b/minuet.el
index 1fa6afedd7..6e98630c64 100644
--- a/minuet.el
+++ b/minuet.el
@@ -888,17 +888,15 @@ many lines.  Without a prefix argument, accept only the 
first line."
                                    (string-join remaining-lines "\n"))))
       (minuet--cleanup-suggestion)
       (insert (string-join selected-lines "\n"))
-      (if remaining-suggestion
-          (progn
-            (insert "\n") ;; There is a remaining suggestion, so move to the 
next line.
-            ;; NOTE: We do not need to worry about Minuet
-            ;; automatically triggering the next suggestion upon
-            ;; continuous acceptance.  Minuet only attempts
-            ;; auto-suggestion when the last command was not a Minuet
-            ;; command. Since we have just accepted partial lines, the
-            ;; last command is indeed a Minuet command.
-            (minuet--display-suggestion (list remaining-suggestion) 0))
-        (minuet--cleanup-suggestion)))))
+      (when remaining-suggestion
+        (insert "\n") ;; There is a remaining suggestion, so move to the next 
line.
+        ;; NOTE: We do not need to worry about Minuet
+        ;; automatically triggering the next suggestion upon
+        ;; continuous acceptance.  Minuet only attempts
+        ;; auto-suggestion when the last command was not a Minuet
+        ;; command. Since we have just accepted partial lines, the
+        ;; last command is indeed a Minuet command.
+        (minuet--display-suggestion (list remaining-suggestion) 0)))))
 
 ;;;###autoload
 (defun minuet-complete-with-minibuffer ()

Reply via email to