2015-07-08 09:36:46 +02:00
|
|
|
Index: joe-4.0/joe/b.c
|
|
|
|
===================================================================
|
|
|
|
--- joe-4.0.orig/joe/b.c
|
|
|
|
+++ joe-4.0/joe/b.c
|
|
|
|
@@ -626,9 +626,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);
|
2015-07-08 09:36:46 +02:00
|
|
|
@@ -660,9 +661,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);
|