FCT if current column is outside rectangle.
(cua--delete-rectangle): Do nothing if zero width or out of bounds.
(forward-char 1))
(set-marker m (point))
(move-to-column l pad)
- (if fct
+ (if (and fct (>= (current-column) l) (<= (current-column) r))
(let ((v t) (p (point)))
(when sel
(if (car (cdr sel))
(defun cua--delete-rectangle ()
(cua--rectangle-operation nil nil t 2
'(lambda (s e l r)
- (delete-region s (if (> e s) e (1+ e))))))
+ (if (and (> e s) (<= e (point-max)))
+ (delete-region s e)))))
(defun cua--extract-rectangle ()
(let (rect)