[PATCH] C89
François Revol <[email protected]> Sat, 18 Jan 2014 09:44:39 +0100
| Newsgroups | gmane.editors.qemacs.devel |
|---|---|
| Message-ID | <[email protected]> |
For Haiku. François. _______________________________________________ Qemacs-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/qemacs-devel
qemacs-c89.diff
(text/x-patch, 731 B)
Index: qe.c
===================================================================
RCS file: /sources/qemacs/qemacs/qe.c,v
retrieving revision 1.128
diff -u -r1.128 qe.c
--- qe.c 17 Jan 2014 13:19:14 -0000 1.128
+++ qe.c 18 Jan 2014 08:43:35 -0000
@@ -3273,11 +3273,13 @@
int get_non_colorized_line(EditState *s, unsigned int *buf, int buf_size,
int *offsetp, int line_num)
{
+ int len;
+
if (s->b->b_styles) {
return get_staticly_colorized_line(s, buf, buf_size, offsetp, line_num);
}
- int len = eb_get_line(s->b, buf, buf_size, offsetp);
+ len = eb_get_line(s->b, buf, buf_size, offsetp);
// XXX: should force \0 instead of \n
buf[len] = '\n';
return len;