2009-10-26 16:55:32 +01:00
|
|
|
--- b.c.orig 2008-11-02 21:59:06.000000000 +0100
|
|
|
|
+++ b.c 2009-10-20 12:18:46.443802718 +0200
|
|
|
|
@@ -601,9 +601,10 @@ int piseow(P *p)
|
2007-01-16 00:19:02 +01:00
|
|
|
int pisblank(P *p)
|
|
|
|
{
|
|
|
|
P *q = pdup(p, USTR "pisblank");
|
|
|
|
+ int brc_result;
|
|
|
|
|
|
|
|
p_goto_bol(q);
|
|
|
|
- while (joe_isblank(p->b->o.charmap,brc(q)))
|
|
|
|
+ while (((brc_result = brc(q)) != MAXINT) && joe_isblank(p->b->o.charmap,brc(q)))
|
|
|
|
pgetb(q);
|
|
|
|
if (piseol(q)) {
|
|
|
|
prm(q);
|
2009-10-26 16:55:32 +01:00
|
|
|
@@ -635,9 +636,10 @@ long pisindent(P *p)
|
2007-01-16 00:19:02 +01:00
|
|
|
{
|
2009-10-26 16:55:32 +01:00
|
|
|
P *q = pdup(p, USTR "pisindent");
|
2007-01-16 00:19:02 +01:00
|
|
|
long col;
|
|
|
|
+ int brc_result;
|
|
|
|
|
|
|
|
p_goto_bol(q);
|
|
|
|
- while (joe_isblank(p->b->o.charmap,brc(q)))
|
|
|
|
+ while (((brc_result = brc(q)) != MAXINT) && joe_isblank(p->b->o.charmap,brc(q)))
|
|
|
|
pgetc(q);
|
|
|
|
col = q->col;
|
|
|
|
prm(q);
|