emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-25 dfd0476: Fix cursor at bottom left of rectangle (


From: Alan Third
Subject: [Emacs-diffs] emacs-25 dfd0476: Fix cursor at bottom left of rectangle (bug#24364)
Date: Wed, 19 Oct 2016 11:41:53 +0000 (UTC)

branch: emacs-25
commit dfd047666bcb2179652aee80248471a6efec06fc
Author: Alan Third <address@hidden>
Commit: Alan Third <address@hidden>

    Fix cursor at bottom left of rectangle (bug#24364)
    
    * lisp/rect.el (rectangle--col-pos): Don't assume point at EOL doesn't
    require rectangle--point-crutches to be set.
---
 lisp/rect.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/rect.el b/lisp/rect.el
index 70a542d..c003164 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -108,7 +108,7 @@ Point is at the end of the segment of this line within the 
rectangle."
 
 (defun rectangle--col-pos (col kind)
   (let ((c (move-to-column col)))
-    (if (= c col)
+    (if (and (= c col) (not (eolp)))
         (if (eq kind 'point)
             (if (window-parameter nil 'rectangle--point-crutches)
                 (setf (window-parameter nil 'rectangle--point-crutches) nil))



reply via email to

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