shithub: asif

Download patch

ref: f0aa2bfef6b39d26792d66be56565fca32d4a842
parent: f09e8fb805ae93f613f29fb30fa5de5d1980d891
author: qwx <qwx@sciops.net>
date: Thu Nov 3 22:26:39 EDT 2022

path(1): fix not redrawing map on different scenario

--- a/app/path/path.c
+++ b/app/path/path.c
@@ -88,7 +88,7 @@
 	case 'g': showgrid ^= 1; return 0;
 	case '0': case '1': case '2': case '3': case '4':
 	case '5': case '6': case '7': case '8': case '9':
-		return setscen() >= 0 ? 0 : -1;
+		return setscen() >= 0 ? 1 : -1;
 	case '+':
 	/* FIXME: no hud when screen too small */
 	case '=': return nodesz < 1<<16 ? (nodesz <<= 1, 4) : -1;