shithub: riscv

Download patch

ref: bf74dfbc7ae39b0e7aee35bad63fb219f49e88cb
parent: 45384b00263b670c859a3a9bb47ac684c68c1905
author: cinap_lenrek <[email protected]>
date: Sun May 17 02:59:09 EDT 2015

kbdfs: Runemax is inclusive.

--- a/sys/src/cmd/aux/kbdfs/kbdfs.c
+++ b/sys/src/cmd/aux/kbdfs/kbdfs.c
@@ -577,7 +577,7 @@
 				else
 					break;
 			} while(--i > 0);
-			if((i == 0 || rr == ';') && r != 0 && r < Runemax)
+			if((i == 0 || rr == ';') && r != 0 && r <= Runemax)
 				goto Forward;
 		} else {
 			if(nextrune(rawchan, &rr))