mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
* lisp/rect.el (delete-whitespace-rectangle-line): Don't cross EOL.
This commit is contained in:
parent
a3d11ecb83
commit
a77540e774
1 changed files with 2 additions and 1 deletions
|
|
@ -346,7 +346,8 @@ no text on the right side of the rectangle."
|
|||
(defun delete-whitespace-rectangle-line (startcol _endcol fill)
|
||||
(when (= (move-to-column startcol (if fill t 'coerce)) startcol)
|
||||
(unless (= (point) (point-at-eol))
|
||||
(delete-region (point) (progn (skip-syntax-forward " ") (point))))))
|
||||
(delete-region (point) (progn (skip-syntax-forward " " (point-at-eol))
|
||||
(point))))))
|
||||
|
||||
;;;###autoload
|
||||
(defalias 'close-rectangle 'delete-whitespace-rectangle) ;; Old name
|
||||
|
|
|
|||
Loading…
Reference in a new issue