projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec12c67
)
Fix cursor at bottom left of rectangle (bug#24364)
author
Alan Third
<alan@idiocy.org>
Sun, 4 Sep 2016 21:58:37 +0000
(22:58 +0100)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/lisp/rect.el
b/lisp/rect.el
index 13499d686f34e180427f8e686f8a2583599b0745..f9bebc47fef7e188261774a10a96c1fee9bfda46 100644
(file)
--- 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))