Diff of /joe/b.c [75731f] .. [c427d7] Maximize Restore

  Switch to side-by-side view

--- a/joe/b.c
+++ b/joe/b.c
@@ -799,6 +799,13 @@
 			++(p->line);
 			p->col = 0;
 			p->valcol = 1;
+                } else if (c == '\033') { /* Hide ansi */
+                        int d;
+                        int v = p->valcol;
+                        while ((d = pgetb(p)) != NO_MORE_DATA)
+                                if (d >= 'A' && d <= 'Z' || d >= 'a' && d <= 'z')
+                                        break;
+                        p->valcol = v;
 		} else if (p->b->o.crlf && c == '\r') {
 			if (brc(p) == '\n')
 				return pgetc(p);
@@ -877,7 +884,7 @@
 /* move p to the previous character (try to keep col updated) */
 int prgetc(P *p)
 {
-	if (p->b->o.charmap->type) {
+	if (p->b->o.charmap->type || 1) {
 
 		if (pisbol(p))
 			return prgetb(p);
@@ -1013,7 +1020,7 @@
 /* move p to the end of line */
 P *p_goto_eol(P *p)
 {
-	if (p->b->o.crlf || p->b->o.charmap->type)
+	if (p->b->o.crlf || p->b->o.charmap->type || 1)
 		while (!piseol(p))
 			pgetc(p);
 	else
@@ -1120,7 +1127,7 @@
 P *pcol(P *p, long goalcol)
 {
 	p_goto_bol(p);
-	if(p->b->o.charmap->type) {
+	if(p->b->o.charmap->type || 1) {
 		do {
 			int c;
 			int wid;
@@ -1192,7 +1199,7 @@
 P *pcoli(P *p, long goalcol)
 {
 	p_goto_bol(p);
-	if (p->b->o.charmap->type) {
+	if (p->b->o.charmap->type || 1) {
 		while (p->col < goalcol) {
 			int c;
 			c = brc(p);