diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/compctl.c | 2 | ||||
-rw-r--r-- | Src/Zle/complete.c | 2 | ||||
-rw-r--r-- | Src/Zle/zle_hist.c | 2 | ||||
-rw-r--r-- | Src/Zle/zle_refresh.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index 247f4c02d..9023dbd69 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -2892,7 +2892,7 @@ sep_comp_string(char *ss, char *s, int noffs) sl = strlen(s); if (swe > sl) { swe = sl; - if (strlen(ns) > swe - swb + 1) + if ((int)strlen(ns) > swe - swb + 1) ns[swe - swb + 1] = '\0'; } qs = tricat(multiquote(s + swe, 0), qisuf, ""); diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index b325b8536..3939bdd07 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -788,7 +788,7 @@ do_comp_vars(int test, int na, char *sa, int nb, char *sb, int mod) if (!na) return 1; if (na > 0 && - strlen(test == CVT_PRENUM ? compprefix : compsuffix) >= na) { + (int)strlen(test == CVT_PRENUM ? compprefix : compsuffix) >= na) { if (mod) { if (test == CVT_PRENUM) ignore_prefix(na); diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index 94770b235..f1463cd15 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -808,7 +808,7 @@ doisearch(char **args, int dir) else pos -= 1 + (pos != 1 && s[pos-2] == Meta); } else if (sbuf[0] != '^') { - if (pos >= strlen(s+1)) + if (pos >= (int)strlen(s+1)) skip_line = 1; else pos += 1 + (s[pos] == Meta); diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c index 86564eb74..2b90edd0c 100644 --- a/Src/Zle/zle_refresh.c +++ b/Src/Zle/zle_refresh.c @@ -1033,7 +1033,7 @@ tc_rightcurs(int ct) if we're anywhere in the prompt, goto the left column and write the whole prompt out unless ztrlen(lpromptbuf) == lpromptw : we can cheat then */ if (vln == 0 && i < lpromptw && !(termflags & TERM_SHORT)) { - if (strlen(lpromptbuf) == lpromptw) + if ((int)strlen(lpromptbuf) == lpromptw) fputs(lpromptbuf + i, shout); else if (tccan(TCRIGHT) && (tclen[TCRIGHT] * ct <= ztrlen(lpromptbuf))) /* it is cheaper to send TCRIGHT than reprint the whole prompt */ |