all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: 24364@debbugs.gnu.org
Cc: mariejones@web.de
Subject: bug#24364: [PATCH] Fix cursor at bottom left of rectangle (bug#24364)
Date: Sun, 4 Sep 2016 23:19:25 +0100	[thread overview]
Message-ID: <20160904221925.GA23467@breton.holly.idiocy.org> (raw)
In-Reply-To: <20160904184755.GA3137@breton.holly.idiocy.org>

* 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 13499d6..f9bebc4 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -108,7 +108,7 @@ rectangle--pos-cols
 
 (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))
-- 
I believe this small change sorts it.
-- 
Alan Third





      parent reply	other threads:[~2016-09-04 22:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-04 15:03 bug#24364: 25.1; C-x C-x in rectangle-mark-mode leaves corner out Marie-Christine Jones
2016-09-04 18:50 ` Alan Third
2016-09-04 19:03   ` Eli Zaretskii
2016-09-04 22:19   ` Alan Third [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160904221925.GA23467@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=24364@debbugs.gnu.org \
    --cc=mariejones@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.