do not put '\n' characters into the screen data structures
authorChris Torek <torek@ucbvax.Berkeley.EDU>
Sat, 13 Feb 1993 09:39:45 +0000 (01:39 -0800)
committerChris Torek <torek@ucbvax.Berkeley.EDU>
Sat, 13 Feb 1993 09:39:45 +0000 (01:39 -0800)
SCCS-vsn: lib/libcurses/addbytes.c 5.19

usr/src/lib/libcurses/addbytes.c

index 0a329a0..fbb724f 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)addbytes.c 5.18 (Berkeley) %G%";
+static char sccsid[] = "@(#)addbytes.c 5.19 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <curses.h>
 #endif /* not lint */
 
 #include <curses.h>
@@ -76,6 +76,8 @@ newline:                      if (y == win->maxy - 1) {
                                        lp = win->lines[y];
                                        x = 0;
                                }
                                        lp = win->lines[y];
                                        x = 0;
                                }
+                               if (c == '\n')
+                                       break;
                        }
                                
                        stand = '\0';
                        }
                                
                        stand = '\0';