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

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

[elpa] externals/company 87351c2c59 02/24: Use vertical-motion instead o


From: ELPA Syncer
Subject: [elpa] externals/company 87351c2c59 02/24: Use vertical-motion instead of move-to-column
Date: Mon, 6 Nov 2023 09:57:36 -0500 (EST)

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

    Use vertical-motion instead of move-to-column
    
    #1388
---
 company.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/company.el b/company.el
index 31598d1234..2d027be55a 100644
--- a/company.el
+++ b/company.el
@@ -2798,11 +2798,11 @@ from the candidates list.")
       (with-temp-buffer
         (setq buffer-invisibility-spec bis)
         (insert str)
-        (move-to-column from)
+        (vertical-motion (cons from 0))
         (let ((beg (point)))
           (if to
               (progn
-                (move-to-column to)
+                (vertical-motion (cons to 0))
                 (concat (buffer-substring beg (point))
                         (let ((padding (- to (current-column))))
                           (when (> padding 0)



reply via email to

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