shithub: neatroff

Download patch

ref: 80b2dc5db97b8e1d0628578d6696836693e1d563
parent: 218b0a12bc312732de56e6ff022204b3139de247
author: Ali Gholami Rudi <ali@rudi.ir>
date: Mon Nov 27 09:34:43 EST 2017

cp: interpret \? in copy-mode

--- a/cp.c
+++ b/cp.c
@@ -226,11 +226,11 @@
 		} else if (c == '$') {
 			cp_arg();
 			c = cp_next();
+		} else if (c == '?') {
+			cp_cond();
+			c = cp_next();
 		} else if (c == 'R' && !cp_cpmode) {
 			cp_numdef();
-			c = cp_next();
-		} else if (c == '?' && !cp_cpmode) {
-			cp_cond();
 			c = cp_next();
 		} else {
 			cp_back(c);