[Commit] jove c.c,1.5,1.6
Keith Packard
commit at keithp.com
Sun Oct 19 20:52:14 PDT 2003
Committed by: keithp
Update of /local/src/CVS/jove
In directory evo:/local/src/jove
Modified Files:
c.c
Log Message:
Fix bug introduced on utf-8 conversion testing begining of line. Check for just after comment when calculating line indent
Index: c.c
===================================================================
RCS file: /local/src/CVS/jove/c.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- c.c 16 Aug 2003 00:25:41 -0000 1.5
+++ c.c 20 Oct 2003 03:52:10 -0000 1.6
@@ -473,7 +473,7 @@
Eol ();
while (cur_char () != ')')
{
- if (bolp() <= 0)
+ if (bolp())
return NO;
left_char ();
}
@@ -612,6 +612,14 @@
indent = calc_pos (linebuf, curchar);
if (indent == 0)
break;
+ if ((bp = in_comment ()) && bp->p_line != curline)
+ {
+ SetDot (bp);
+ ToIndent ();
+ indent = calc_pos (linebuf, curchar);
+ if (indent == 0)
+ break;
+ }
}
}
else
More information about the Commit
mailing list