summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui_readline.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui_readline.c b/src/ui_readline.c
index e65d6b5..c2cd410 100644
--- a/src/ui_readline.c
+++ b/src/ui_readline.c
@@ -100,13 +100,11 @@ size_t BarReadline (char *buf, size_t bufSize, const char *mask,
} else {
/* delete utf-8 multibyte chars */
/* char content */
- while (bufPos >= 0 &&
- BarReadlineIsUtf8Content (buf[bufPos-1])) {
+ while (BarReadlineIsUtf8Content (buf[bufPos-1])) {
BarReadlineMoveLeft (buf, &bufPos, &bufLen);
}
/* char length */
- if (bufPos >= 0 &&
- BarReadlineIsUtf8Start (buf[bufPos-1])) {
+ if (BarReadlineIsUtf8Start (buf[bufPos-1])) {
BarReadlineMoveLeft (buf, &bufPos, &bufLen);
}
}