diff options
author | Antonin Décimo <antonin.decimo@gmail.com> | 2019-08-10 19:18:20 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-08-12 09:37:21 +0900 |
commit | 82f48b8912515cb2c6dc1b10dfa783fa50a0422c (patch) | |
tree | cfbf7e5b269f4aceeb2b3e848249f2b37451e45e /examples | |
parent | 8d5f27ef258dfa10f1b97a9835b92044b789821f (diff) |
examples: remove duplicated condition
Diffstat (limited to 'examples')
-rw-r--r-- | examples/text-input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/text-input.c b/examples/text-input.c index ac3c8a44..bfdbc07b 100644 --- a/examples/text-input.c +++ b/examples/text-input.c @@ -137,8 +137,7 @@ static void show_status(void) { goto end; } - if ((unsigned)current.preedit.cursor_begin > strlen(preedit_text) - || (unsigned)current.preedit.cursor_begin > strlen(preedit_text)) { + if ((unsigned)current.preedit.cursor_begin > strlen(preedit_text)) { printf("Cursor out of bounds\n"); goto end; } |