3573c62560
- Add Patch joe-4.6-fix_return_in_main.patch: When using older versions of gcc, it throws an error because main does not return always a value. - Add Patch joe-4.6-desktop_files.patch: Desktop Category was wrong. - Update to version 4.6 - Update to version 4.5 OBS-URL: https://build.opensuse.org/request/show/653514 OBS-URL: https://build.opensuse.org/package/show/editors/joe?expand=0&rev=30
33 lines
784 B
Diff
33 lines
784 B
Diff
---
|
|
joe/b.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
Index: joe/b.c
|
|
===================================================================
|
|
--- joe/b.c.orig
|
|
+++ joe/b.c
|
|
@@ -638,9 +638,10 @@ int piseow(P *p)
|
|
int pisblank(P *p)
|
|
{
|
|
P *q = pdup(p, "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);
|
|
@@ -672,9 +673,10 @@ off_t pisindent(P *p)
|
|
{
|
|
P *q = pdup(p, "pisindent");
|
|
off_t 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);
|