about summary refs log tree commit diff
path: root/Src/Zle/zle_move.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/zle_move.c')
-rw-r--r--Src/Zle/zle_move.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_move.c b/Src/Zle/zle_move.c
index 5b02616a2..f15b114f5 100644
--- a/Src/Zle/zle_move.c
+++ b/Src/Zle/zle_move.c
@@ -209,8 +209,8 @@ backwardmetafiedchar(char *start, char *endptr, convchar_t *retchr)
 		return ptr;
 	    }
 	}
-	if (ret >= 0) {
-	    if (ret < charlen) {
+	if (ret != (size_t)-1) {
+	    if (ret < (size_t)charlen) {
 		/* The last character didn't convert, so use it raw. */
 		break;
 	    }