]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix cursor at bottom left of rectangle (bug#24364)
authorAlan Third <alan@idiocy.org>
Sun, 4 Sep 2016 21:58:37 +0000 (22:58 +0100)
committerAlan Third <alan@idiocy.org>
Wed, 7 Sep 2016 21:29:14 +0000 (22:29 +0100)
* lisp/rect.el (rectangle--col-pos): Don't assume point at EOL doesn't
require rectangle--point-crutches to be set.

lisp/rect.el

index 13499d686f34e180427f8e686f8a2583599b0745..f9bebc47fef7e188261774a10a96c1fee9bfda46 100644 (file)
@@ -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))