]> git.eshelyaron.com Git - emacs.git/commitdiff
Do not show string-rectangle preview if minibuffer is empty
authorMark Oteiza <mvoteiza@udel.edu>
Thu, 21 Jul 2016 20:54:03 +0000 (16:54 -0400)
committerMark Oteiza <mvoteiza@udel.edu>
Thu, 21 Jul 2016 20:54:03 +0000 (16:54 -0400)
* lisp/rect.el (rectangle--string-preview): Remove condition that sets
preview string to the default replacement string.

lisp/rect.el

index fb85b187d77547e49b9eb8fddbbe7e1cc4a7526a..70a542d672462425c659d399b60b24ae3ed228cc 100644 (file)
@@ -410,9 +410,6 @@ With a prefix (or a FILL) argument, also fill too short lines."
 (defun rectangle--string-preview ()
   (when rectangle-preview
     (let ((str (minibuffer-contents)))
-      (when (equal str "")
-        (setq str (or (car-safe minibuffer-default)
-                      (if (stringp minibuffer-default) minibuffer-default))))
       (when str (setq str (propertize str 'face 'rectangle-preview)))
       (with-selected-window rectangle--string-preview-window
         (unless (or (null rectangle--string-preview-state)