]> git.eshelyaron.com Git - emacs.git/commitdiff
(tty_defined_color): Fix last change.
authorEli Zaretskii <eliz@gnu.org>
Thu, 16 Dec 1999 09:38:21 +0000 (09:38 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 16 Dec 1999 09:38:21 +0000 (09:38 +0000)
src/ChangeLog
src/xfaces.c

index f4bf9a92cc46637b16c017b276c04e61d784f9f6..e877aa7e13838c87a9fa747d940edffd91ed7fc3 100644 (file)
@@ -1,3 +1,7 @@
+1999-12-16  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * xfaces.c (tty_defined_color): Fix last change.
+
 1999-12-15  Gerd Moellmann  <gerd@gnu.org>
 
        * xdisp.c (redisplay_window) <optional new window start>: Check
index dd51df034acc94e2a92336fd4f799311b29f7246..2017edbfd9aa71db1172b5cf9e0dc994ddafa0a0 100644 (file)
@@ -1090,7 +1090,7 @@ tty_defined_color (f, color_name, color_def, alloc)
     {
       status = 0;
       color_desc = call1 (Qtty_color_desc, build_string (color_name));
-      if (!NILP (color_desc) && CONSP (color_desc))
+      if (CONSP (color_desc) && CONSP (XCDR (color_desc)))
        {
          color_idx = XINT (XCAR (XCDR (color_desc)));
          if (CONSP (XCDR (XCDR (color_desc))))