summary refs log tree commit diff
path: root/Src/prompt.c
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-07-30 10:50:48 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-08-01 08:01:29 +0000
commitf9b170351136e7e2e04cecf4f1f6c686b0c1324d (patch)
tree46e9e0fe3196981ca8dd12e47d25ebf0908b10d3 /Src/prompt.c
parent1a368bf31f2b2e6e96290a4803bdcd81e9f17393 (diff)
downloadzsh-f9b170351136e7e2e04cecf4f1f6c686b0c1324d.tar.gz
zsh-f9b170351136e7e2e04cecf4f1f6c686b0c1324d.tar.xz
zsh-f9b170351136e7e2e04cecf4f1f6c686b0c1324d.zip
38971: Start using the new arrlen_ge() / arrlen_le() helpers.
Diffstat (limited to 'Src/prompt.c')
-rw-r--r--Src/prompt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/prompt.c b/Src/prompt.c
index bb2745358..d4f389809 100644
--- a/Src/prompt.c
+++ b/Src/prompt.c
@@ -395,11 +395,11 @@ putpromptchar(int doprint, int endchar, unsigned int *txtchangep)
 			test = 1;
 		    break;
 		case 'v':
-		    if (arrlen(psvar) >= arg)
+		    if (arrlen_ge(psvar, arg))
 			test = 1;
 		    break;
 		case 'V':
-		    if (arrlen(psvar) >= arg) {
+		    if (arrlen_ge(psvar, arg)) {
 			if (*psvar[(arg ? arg : 1) - 1])
 			    test = 1;
 		    }
@@ -736,7 +736,7 @@ putpromptchar(int doprint, int endchar, unsigned int *txtchangep)
 		    arg = 1;
 		else if (arg < 0)
 		    arg += arrlen(psvar) + 1;
-		if (arg > 0 && arrlen(psvar) >= arg)
+		if (arg > 0 && arrlen_ge(psvar, arg))
 		    stradd(psvar[arg - 1]);
 		break;
 	    case 'E':