diff src/minibuf.c @ 106651:5fdab8db3bcb

* minibuf.c (Fall_completions): Minor optimization.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 27 Dec 2009 08:11:12 +0000
parents 21bdda3ded62
children 1d1d5d9bd884
line wrap: on
line diff
--- 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,