From 20a4f6a967dc864b1fb5428a3f358246f5ab67f8 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 25 Aug 2014 12:40:53 -0400 Subject: * emulation/cua-rect.el (cua--highlight-rectangle): Avoid error at point-min. Fixes: debbugs:18309 --- lisp/emulation/cua-rect.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/emulation/cua-rect.el') diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el index 31dd137a6b9..4620b0e8c0f 100644 --- a/lisp/emulation/cua-rect.el +++ b/lisp/emulation/cua-rect.el @@ -794,7 +794,7 @@ If command is repeated at same position, delete the rectangle." (make-string (- l cl0 (if (and (= le pl) (/= le lb)) 1 0)) (if cua--virtual-edges-debug ?. ?\s)) - 'face (or (get-text-property (1- s) 'face) 'default))) + 'face (or (get-text-property (max (1- s) (point-min)) 'face) 'default))) (if (/= pl le) (setq s (1- s)))) (cond -- cgit v1.2.1