summaryrefslogtreecommitdiff
path: root/lisp/wid-browse.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/wid-browse.el')
-rw-r--r--lisp/wid-browse.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/wid-browse.el b/lisp/wid-browse.el
index 54b71c9f9f6..7ce0633b40b 100644
--- a/lisp/wid-browse.el
+++ b/lisp/wid-browse.el
@@ -218,7 +218,7 @@ Nothing is assumed about value."
(error (prin1-to-string signal)))))
(when (string-match "\n\\'" pp)
(setq pp (substring pp 0 (1- (length pp)))))
- (if (cond ((string-match "\n" pp)
+ (if (cond ((string-search "\n" pp)
nil)
((> (length pp) (- (window-width) (current-column)))
nil)