changeset 47622:b604605851ea

(iswitchb-completions): Test that iswitchb-common-match-string is a string, before printing common completions.
author Stephen Eglen <stephen@gnu.org>
date Thu, 26 Sep 2002 15:50:59 +0000
parents 2e93b2eb38c8
children 5c112234650f
files lisp/iswitchb.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/iswitchb.el	Thu Sep 26 10:17:02 2002 +0000
+++ b/lisp/iswitchb.el	Thu Sep 26 15:50:59 2002 +0000
@@ -1260,7 +1260,8 @@
 
 	      ;; put in common completion item -- what you get by
 	      ;; pressing tab
-	      (if (> (length iswitchb-common-match-string) (length name))
+	      (if (and (stringp iswitchb-common-match-string)
+		       (> (length iswitchb-common-match-string) (length name)))
 		  (concat open-bracket-determined
 			  (substring iswitchb-common-match-string
 				     (length name))