branch: externals/objed commit 45f1938251de71ffe2565ddb4c0ec7507e20f69e Author: Clemens Radermacher <clem...@posteo.net> Commit: Clemens Radermacher <clem...@posteo.net>
Improve objed extend for next-line --- objed.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/objed.el b/objed.el index d5b091f..7373cc0 100644 --- a/objed.el +++ b/objed.el @@ -651,7 +651,8 @@ BEFORE and AFTER are forms to execute before/after calling the command." (define-key map "p" (objed--call-and-switch previous-line line)) (define-key map "n" (objed--call-and-switch next-line line - (when (and (eq last-command 'objed-extend) + (when (and (bolp) + (eq last-command 'objed-extend) (eq objed--object 'line)) (objed-exchange-point-and-mark) (goto-char (line-beginning-position)))))