emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 52cf0d5: Do not show string-rectangle preview if


From: Mark Oteiza
Subject: [Emacs-diffs] emacs-25 52cf0d5: Do not show string-rectangle preview if minibuffer is empty
Date: Thu, 21 Jul 2016 20:56:08 +0000 (UTC)

branch: emacs-25
commit 52cf0d5d98c51c3591ca5d376fd4e85cd9b72d7f
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>

    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.
---
 lisp/rect.el |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/lisp/rect.el b/lisp/rect.el
index fb85b18..70a542d 100644
--- a/lisp/rect.el
+++ b/lisp/rect.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]