2015-10-04 22:57:00 +02:00
|
|
|
---
|
|
|
|
joe/b.c | 6 ++++--
|
|
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
Index: joe-4.1/joe/b.c
|
2015-07-08 09:36:46 +02:00
|
|
|
===================================================================
|
2015-10-04 22:57:00 +02:00
|
|
|
--- joe-4.1.orig/joe/b.c
|
|
|
|
+++ joe-4.1/joe/b.c
|
|
|
|
@@ -633,9 +633,10 @@ int piseow(P *p)
|
2007-01-16 00:19:02 +01:00
|
|
|
int pisblank(P *p)
|
|
|
|
{
|
2015-10-04 22:57:00 +02:00
|
|
|
P *q = pdup(p, "pisblank");
|
2007-01-16 00:19:02 +01:00
|
|
|
+ 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-10-04 22:57:00 +02:00
|
|
|
@@ -667,9 +668,10 @@ off_t pisindent(P *p)
|
2007-01-16 00:19:02 +01:00
|
|
|
{
|
2015-10-04 22:57:00 +02:00
|
|
|
P *q = pdup(p, "pisindent");
|
|
|
|
off_t col;
|
2007-01-16 00:19:02 +01:00
|
|
|
+ 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);
|