Ticket #7432: ansi_oneline.diff

File ansi_oneline.diff, 0.5 KB (added by Sketch, 17 months ago)
Line 
1diff --exclude-from .pennmush_excludes -ru pennmush-1.8.3p4/src/markup.c punnmush-1.8.3p4/src/markup.c
2--- pennmush-1.8.3p4/src/markup.c   2007-08-14 18:05:08.000000000 -0700
3+++ punnmush-1.8.3p4/src/markup.c   2007-08-14 17:12:18.000000000 -0700
4@@ -1716,7 +1716,7 @@
5   if (end < next)
6     next = end;
7 
8-  curansi = (start > 0) ? as->ansi[start - 1] : ansi_null;
9+  curansi = as->ansi[start];
10   if (!ansi_isnull(curansi))
11     write_ansi_data(&curansi, buff, bp);
12   /* If there's any text/ansi between start and next, print it */