branch: elpa/isl
commit 34b5a984b91b84252488e802d4550093bcbfe6f3
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>

    Prevent inserting multiline string in minibuf
---
 isl.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/isl.el b/isl.el
index 58fd9a54d4b..82f948ac5a8 100644
--- a/isl.el
+++ b/isl.el
@@ -1023,6 +1023,9 @@ appended at end."
                       (region-beginning)
                       (region-end))
                    (thing-at-point 'symbol t))))
+    ;; Prevent inserting multiline string in minibuf.
+    (when (and default (string-match "\n" default))
+      (setq default (thing-at-point 'symbol t)))
     (deactivate-mark)
     (unwind-protect
          (condition-case-unless-debug nil

Reply via email to