emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/company ccdf6c5 1/2: And reindent


From: ELPA Syncer
Subject: [elpa] externals/company ccdf6c5 1/2: And reindent
Date: Fri, 18 Jun 2021 17:57:07 -0400 (EDT)

branch: externals/company
commit ccdf6c52e29d3b2b8876db607ab62de314499686
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    And reindent
    
    #1118
---
 company.el | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/company.el b/company.el
index f6aabd1..1b4f0b0 100644
--- a/company.el
+++ b/company.el
@@ -2562,13 +2562,13 @@ To show hint numbers beside the candidates, enable 
`company-show-numbers'."
   (company--complete-nth (1- number)))
 
 (defun company--complete-nth (row)
-   "Insert a candidate visible on the tooltip's zero-based ROW."
-   (when (company-manual-begin)
-     (and (or (< row 0) (>= row (- company-candidates-length
-                                   company-tooltip-offset)))
-          (user-error "No candidate on the row number %d" row))
-     (company-finish (nth (+ row company-tooltip-offset)
-                          company-candidates))))
+  "Insert a candidate visible on the tooltip's zero-based ROW."
+  (when (company-manual-begin)
+    (and (or (< row 0) (>= row (- company-candidates-length
+                                  company-tooltip-offset)))
+         (user-error "No candidate on the row number %d" row))
+    (company-finish (nth (+ row company-tooltip-offset)
+                         company-candidates))))
 
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]