From 4e141ed744f843814cf1bcc0d0fe5a5f674419f6 Mon Sep 17 00:00:00 2001 From: Stephen Eglen Date: Thu, 26 Sep 2002 15:52:31 +0000 Subject: [PATCH] (iswitchb-completions): Test that iswitchb-common-match-string is a string, before printing common completions. --- lisp/ChangeLog | 6 ++++++ lisp/iswitchb.el | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2aa6353cf02..82937573af9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2002-09-26 Stephen Eglen + + * iswitchb.el (iswitchb-completions): Test that + iswitchb-common-match-string is a string, before printing common + completions. + 2002-09-24 Simon Josefsson * mail/mail-extr.el (mail-extr-ignore-single-names): Change default. diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index 0b283d0ae77..d24f737851b 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el @@ -1260,7 +1260,8 @@ Modified from `icomplete-completions'." ;; 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)) -- 2.39.2