Do not show string-rectangle preview if minibuffer is empty

* lisp/rect.el (rectangle--string-preview): Remove condition that sets
preview string to the default replacement string.
This commit is contained in:
Mark Oteiza 2016-07-21 16:54:03 -04:00
parent 6a3d031a12
commit 52cf0d5d98

View 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)