Skip to content

Commit

Permalink
fix left/bs for release build
Browse files Browse the repository at this point in the history
  • Loading branch information
amosbird committed Jul 15, 2019
1 parent 6d12c68 commit 0084b15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kit/shell/shellCommand.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ void getPrevCharSize(const char *str, int pos, int *size, int *width) {
if (str[pos] > 0 || countPrefixOnes(str[pos]) > 1) break;
}

assert(mbtowc(&wc, str + pos, MB_CUR_MAX) == *size);
int rc = mbtowc(&wc, str + pos, MB_CUR_MAX);
assert(rc == *size);

*width = wcwidth(wc);
}
Expand Down

0 comments on commit 0084b15

Please sign in to comment.