changeset 106651:5fdab8db3bcb

* minibuf.c (Fall_completions): Minor optimization.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 27 Dec 2009 08:11:12 +0000
parents 8caf4b7cfaab
children 7b9e6639caa3 c882f50b958b
files src/ChangeLog src/minibuf.c
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Dec 26 22:02:26 2009 +0000
+++ b/src/ChangeLog	Sun Dec 27 08:11:12 2009 +0000
@@ -1,3 +1,7 @@
+2009-12-27  Chong Yidong  <cyd@stupidchicken.com>
+
+	* minibuf.c (Fall_completions): Minor optimization.
+
 2009-12-26  Eli Zaretskii  <eliz@gnu.org>
 
 	* .gdbinit (pgx): Fix display of composite glyphs.  Display
--- a/src/minibuf.c	Sat Dec 26 22:02:26 2009 +0000
+++ b/src/minibuf.c	Sun Dec 27 08:11:12 2009 +0000
@@ -1647,10 +1647,10 @@
 	  && SCHARS (string) <= SCHARS (eltstring)
 	  /* If HIDE_SPACES, reject alternatives that start with space
 	     unless the input starts with space.  */
-	  && ((SBYTES (string) > 0
-	       && SREF (string, 0) == ' ')
-	      || SREF (eltstring, 0) != ' '
-	      || NILP (hide_spaces))
+	  && (NILP (hide_spaces)
+	      || (SBYTES (string) > 0
+		  && SREF (string, 0) == ' ')
+	      || SREF (eltstring, 0) != ' ')
 	  && (tem = Fcompare_strings (eltstring, zero,
 				      make_number (SCHARS (string)),
 				      string, zero,