aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/rect.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/rect.el b/lisp/rect.el
index 4f5ae2d8146..437f030395d 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -135,7 +135,7 @@ the function is called."
135 )) 135 ))
136 136
137(defun delete-rectangle-line (startcol endcol fill) 137(defun delete-rectangle-line (startcol endcol fill)
138 (let ((pt (point-at-eol))) 138 (let ((pt (line-end-position)))
139 (when (= (move-to-column-force startcol (or fill 'coerce)) startcol) 139 (when (= (move-to-column-force startcol (or fill 'coerce)) startcol)
140 (if (and (not fill) (<= pt endcol)) 140 (if (and (not fill) (<= pt endcol))
141 (delete-region (point) pt) 141 (delete-region (point) pt)